From: hemant Date: 2007-02-16T01:27:59+09:00 Subject: Re: Creating a second instance of a singleton class? On 2/15/07, Pit Capitain wrote: > hemant schrieb: > > However, what puzzles me, how come #clone copies methods from > > Singleton class as well? #dup won't allow that. You can't marshal > > singleton and an attempt would throw error. > > Works as documented: > > ri Object#clone > ri Object#dup > > It says: While +clone+ is used to duplicate an object, including its > internal state, +dup+ typically uses the class of the descendent object > to create the new instance. Hey Pit, Internal State was not quite so clear to me so i read up in ri and passed right over it, thanks for clearing it up. Also, then may be we should be able to, marshal the damn singletons also. But PickAxe says Singletons are literally invisible. -- gnufied ----------- There was only one Road; that it was like a great river: its springs were at every doorstep, and every path was its tributary. http://people.inxsasia.com/~hemant