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

Re: PDD 2, vtables

Thread Previous | Thread Next
Dan Sugalski
February 7, 2001 11:37
Re: PDD 2, vtables
Message ID:
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.


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                      teddy bears get drunk

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About