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
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to