Why can't the Persistent use a RIAA pattern that's reference counted? 
 Ideally, I'd like to create a persistent, copy it to another persistent 
(which would increment the reference), then the last one to go out of scope 
should be disposed automatically in the destructor.   In other words, I'd 
like to use it like a boost::shared_ptr.

http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization

This would tremendously simplify my code and ownership of these persistents.

Thoughts?

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to