Faster Virtual Method Dispatch
James Dunne
james.jdunne at gmail.com
Wed Apr 26 18:52:22 PDT 2006
Walter Bright wrote:
> James Dunne wrote:
>
>> Your example is having two trees _point_ to data within each other.
>> The original data is still _owned_ by the original tree which the data
>> resides in. You wouldn't be swapping ownership of the data like
>> you're talking about. In this system, when memory is allocated it is
>> assigned an owner and that ownership does not ever change. So the
>> system resembles a tree (one parent only), not a directed graph.
>
>
> But when this happens in the general case, I can't delete *any* of the
> trees.
When are you trying to delete one of these trees?
To which 'tree' are you referring, the data structure tree or the
hierarchical memory manager's tree?
--
Regards,
James Dunne
More information about the Digitalmars-d
mailing list