Smalltalk language limitation ?

Milan Zimmermann milan.zimmermann at sympatico.ca
Sun Dec 5 20:31:31 UTC 2004


Does your Browser look similar to the attached? (sorry for the 13k png ...)

On December 5, 2004 04:06 pm, Aaron Gray wrote:
> Okay sorry I have been away for a while.
>
> > Now you can enter a method. In the bottom pane, there is some example
> > text that suggests the layout of the method source code. Replace this
> > with your actual method, then accept it. Your actual method can look like
> > this (the underscore character will be a left-arrow when you type it into
> > Squeak):
> >
> > anotherMethod: aParameter
> > "This method does something with aParameter, but for now it will
> > just halt so I can see it in a debugger."
> >
> > | myTempVar |
> >
> > myTempVar _ aParameter.
> > self halt. "self doSomething might go here"
> > ^ myTempVar
>
> I am getting to this point and the method compiler is responding saying
> "Argument name expected ->"
>
> Argument name expected ->anotherMethod: aParameter
> "This method does something with aParameter, but for now it will
> just halt so I can see it in a debugger."
>
> | myTempVar |
>
> myTempVar _ aParameter.
> self halt. "self doSomething might go here"
> ^ myTempVar
>
> What am I doing wrong ?
>
> Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: new-method-in-browser.png
Type: image/png
Size: 13989 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20041205/13ecd01f/new-method-in-browser.png


More information about the Squeak-dev mailing list