Hello Yuri,

Friday, October 11, 2002, 2:56:27 PM, you wrote:


>> >     a = SomeClass.instance(1,2,3)
>>     SomeClass.set_init_args(1, 2, 3)
YL> This approach is perhaps wiser than mine. The only thing is
YL> that we are complicating Singleton by adding a class method

may be simpler approach will be:

class Singleton
  @@a = false
  def initialize(*a)
    raise if @@a
    @@a=true
    super(*a)
  end
  ....
end

?


-- 
Best regards,
 Bulat                            mailto:bulatz / integ.ru