From: MikkelFJ Date: 2002-10-10T23:34:55+09:00 Subject: Re: possible patch for singleton.rb "Dave Thomas" wrote in message news:m265wao0b1.fsf@zip.local.thomases.com... > leikind@mova.org (Yuri Leikind) writes: > SomeClass.set_init_args(1, 2, 3) I agree, I was about to post the same. > a = SomeClass.instance -- will do new(1, 2, 3) > > b = SomeClass.instance -- will reuse existing object > > It would be a runtime error to call set_init_args more than once or > call it after the object has been created. Or it could overwrite the init_args at the the discretion of the class. has_init_args? could be used to test. I think it shouldn't be a language feature, but a feature of the class being implemented. Mikkel