ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
[boost] Re: Cyclic smart pointers (holy grail: the uber-pointer)
by Chuck Messenger other posts by this author
May 29 2003 8:46PM messages near this date
RE: [boost] Cyclic smart pointers (holy grail: the uber-pointer) | [boost] an XML API in boost
Schoenborn, Oliver wrote:

> >>- You always have A owns A_impl owns B owns B_impl refs A (what your
> >>original code seems to say), in this case B_impl contains an RRef<A> 
> >>instead of a DynObj<A> and everything works
>  
>  I'd like to hear whether that's your case or not. 

No.  A and B are completely symmetrical.  They each equally "own" the other.

> >Imagine that I'm supplying a network simulation library.  I have:
> >
> >...(network node code deleted for brevity)...
> >
> >The the problem space is essentially circular.  There's nothing to be 
> >done about it at a design level, in order to make reference 
> >counting work.
>  
>  I don't understand why you keep bringing in reference counting, since NoPtr
>  does not use it when it comes to ownership, therefore you're talking about a
>  problem that does not exist for NoPtr. The application domain is irrelevant:
>  if your problem is with ref counting and NoPtr does not use ref counting,
>  then you don't have that problem.

I looked at NoPtr, and quickly determined that it didn't implement 
garbage collection, so it couldn't solve my problem.  However, I don't 
understand what NoPtr *does*.


     - Chuck Messenger



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Schoenborn, Oliver
Chuck Messenger

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved