> On May 10, 2016, at 12:45 PM, Ron Teitelbaum [via Smalltalk]
> <ml-node+s1294792n4894228...@n4.nabble.com> wrote:
>
> Hi Joe,
>
> Excellent question. Try this.
>
> Object new.
>
> Highlight it and do debug it. Click "Into" to go into the #new method.
>
> Notice the implementation of #new.
>
> You should be able to see there that #initialize is called automatically.
>
> Also for extra points notice what class new is implemented on.
Behavior
> What method should you call to skip initialize?
basicNew
More questions: why isn’t there a command key for debug it?
why isn’t my initialize method not running or running without
setting variables?
Thank you.
Sincerely,
Joe.
--
View this message in context:
http://forum.world.st/new-and-initialize-tp4894227p4894237.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners