develooper Front page | perl.perl6.internals | Postings from February 2001

Re: PDD 2, vtables

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
February 7, 2001 11:37
Subject:
Re: PDD 2, vtables
Message ID:
5.0.2.1.0.20010207143636.02307340@24.8.96.48
At 07:05 PM 2/7/2001 +0000, David Mitchell wrote:
>Dan, before I followup your reply to my list of nits about the PDD,
>can I clarify one thing: destruction.
>
>I am assuming that many PMCs will require destruction, eg calling
>destroy() on a string PMC will cause the memory used by the string
>data to be freed or whatever. Only very simple PMCs (such as integers)
>need to do no detruction.
>
>Is this the same as your perception of reality :-) ?

Nope. The things that call destroy will be those things that have some sort 
of active destruction. Freeing memory doesn't count in this case, since the 
plan is to have some sort of external garbage collector that handles that.

>I also gather that PMCs will have a flag saying whether they need destroying,
>(eg ints say no, strings say yes), and that calls to destroy() are preceeded
>by a check on this flag for efficiency?

Yep, though strings will be a no in this case.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About