[Newbies] Overriding methods
Blake
blake at kingdomrpg.com
Sun Jan 20 19:10:41 UTC 2008
On Sun, 20 Jan 2008 07:50:57 -0800, Bert Freudenberg
<bert at freudenbergs.de> wrote:
> On Jan 20, 2008, at 4:45 , Blake wrote:
>
>> For example, if I want to set up the "contractless" part of my object,
>> I do so by overriding #basicNew, and then setting the values that allow
>> the instance of the object to function.
>
>
> Isn't that what #initialize is for?
>
>> Maybe I should be overriding #new instead of #basicNew, but I get the
>> same dire warning for #new).
>
> There should be no warning for #new. It's perfectly fine to override it.
Thank you!
More information about the Beginners
mailing list