Hi,
In message "Re: private #initialize"
on Fri, 28 Nov 2008 05:38:47 +0900, Yossef Mendelssohn <ymendel / pobox.com> writes:
|And it seems odd to have
|something this central to the language skirting the boundaries of
|access control. Is it simply because an object shouldn't be re-
|initialized once it's created? And if so, is that so horrible?
#initialize is, by its design, supposed to be called only from within
#new to separate per object/class initialization from the #new, thus
you don't have to redefine #new. When you need/want to redefine #new,
it's a sign of a bad design, I believe.
One of the reason #initialize being private is to tell you bad design.
matz.