Faster Virtual Method Dispatch

Walter Bright newshound at digitalmars.com
Wed Apr 26 15:13:44 PDT 2006


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.



More information about the Digitalmars-d mailing list