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

Re: PDD 2, vtables

Thread Previous | Thread Next
David Mitchell
February 7, 2001 11:05
Re: PDD 2, vtables
Message ID:
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 :-) ?

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?

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