Nicholas Clark <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 26, 2005 at 08:55:21AM +0200, Leopold Toetsch wrote:
>> - morph for scalars is ok: e.g. an Integer transforms itself to a Float
>> - morph for arbitrary objects must never be done automatically
> So really my morph code ought to check the ne
On Tue, Apr 26, 2005 at 08:55:21AM +0200, Leopold Toetsch wrote:
> - morph for scalars is ok: e.g. an Integer transforms itself to a Float
> - morph for arbitrary objects must never be done automatically
So really my morph code ought to check the new type to see if it understands
it, and if not t
Bob Rogers <[EMAIL PROTECTED]> wrote:
>From: Leopold Toetsch <[EMAIL PROTECTED]>
>But it isn't known, if the last reference to that PMC is reused or not.
>If it is the last reference then the finalizer has to run, else not.
>As we don't have reference counts, an assign to an object
From: Leopold Toetsch <[EMAIL PROTECTED]>
Date: Mon, 25 Apr 2005 17:41:49 +0200
Nicholas Clark <[EMAIL PROTECTED]> wrote:
> . . .
> Others relate to "this PMC is going away". And as morph involves changing
> the internal memory layout of a PMC without it actually going away, only
From: Leopold Toetsch <[EMAIL PROTECTED]>
Date: Mon, 25 Apr 2005 08:59:05 +0200
Bob Rogers <[EMAIL PROTECTED]> wrote:
>From: Leopold Toetsch <[EMAIL PROTECTED]>
>It probably just depends on the implementation of Perl5 references.
> Hmm. I'm probably missing something (
Nicholas Clark <[EMAIL PROTECTED]> wrote:
> On Sun, Apr 24, 2005 at 09:25:43AM +0200, Leopold Toetsch wrote:
>> Ok, that can be solved by calling A.destroy() first. But what happens,
>> if A has finalizers, which may depend on other finalizers?
> Doesn't this mean that there's a split here in "fi
On Sun, Apr 24, 2005 at 09:25:43AM +0200, Leopold Toetsch wrote:
> Nicholas Clark <[EMAIL PROTECTED]> wrote:
> > When writing morph methods for PMC classes, am I right in thinking that if
> > In effect morph has to be friends of both A and B, because it needs to break
> > encapsulation?
>
> Yep.
Bob Rogers <[EMAIL PROTECTED]> wrote:
>From: Leopold Toetsch <[EMAIL PROTECTED]>
>It probably just depends on the implementation of Perl5 references.
> Hmm. I'm probably missing something (it wouldn't be a first), but if
> the reference points to $a itself rather than the PMC to which $a
From: Leopold Toetsch <[EMAIL PROTECTED]>
Date: Sun, 24 Apr 2005 09:25:43 +0200
Nicholas Clark <[EMAIL PROTECTED]> wrote:
> In effect morph has to be friends of both A and B, because it needs to
break
> encapsulation?
Yep. The same is true for C, which additionally to C,
get
Nicholas Clark <[EMAIL PROTECTED]> wrote:
> When writing morph methods for PMC classes, am I right in thinking that if
> morphing from class A to class B, where both use the PMC_struct_val to
> store structures of different types, it's totally up to the morph method
> to know how to correctly dispo
When writing morph methods for PMC classes, am I right in thinking that if
morphing from class A to class B, where both use the PMC_struct_val to
store structures of different types, it's totally up to the morph method
to know how to correctly dispose of the old class A structure, and create
and in
11 matches
Mail list logo