On Mon, Sep 14, 2009 at 1:39 PM, rkj2 <[email protected]> wrote: > > Hi, > > Does that mean lets say on a deployed app, the Rails server/stack > starting initiates new object_id's being assigned, are the object_id's > still unique for each object over time (with server restarts etc.) if > they are based on a time algorithm ?
No, except for a few objects (and which objects is dependent on the particularly Ruby implementation, there are no guarantees about the uniqueness of object_ids over time or even between two daemon processes running at the same time on the same machine. It's even conceivable that some implementations might change the id of an object over time due to the implementation of the garbage collector, athough I'm not aware of any current Ruby implementations which do so. In Ruby, as in life, the concept of identity is more of a philosophical one than can be relied upon http://en.wikipedia.org/wiki/Ship_of_Theseus -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

