BTW I notice that the API documentation linked from datamapper.org
lists the method as #destroy!, but the documentation on merbivore.com
(which I believe datamapper.org used to point to) has #destroy. I'm
guessing that #destroy! is correct, but is the documentation on
merbivore no longer being mainntained? Or am I missing something?

Mark.


On Oct 4, 11:55 pm, "Dan Kubb (dkubb)" <[email protected]> wrote:
> 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