Ashley,

> ... but on the other hand, if the intention of resources is to appear  
> like pure Ruby objects, it would be inconsistent to do more than  
> destroy the resource itself.
>
> (I have a feeling it's safer if DataMapper takes one attitude or the  
> other and applies it consistently.)

I'm not entirely sure what you mean by the above, since I agree.  I
don't think we should do more that destroy the resource when you call
Resource#destroy.

> Hmmm, would the GC issue be solvable with weakrefs?  I can see it  
> being a potential source of nasty bugs though...

I actually wish there was a decent WeakRef library for MRI and JRuby,
since it could be useful for other things like the Identity Map.  The
problem is that, aside from a few hacks floating around, there doesn't
exist any well tested WeakRef lib for our target platforms.

--

Dan
(dkubb)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to