Smalltalk language limitation ?

Aaron Gray angray at beeb.net
Sun Dec 5 21:06:56 UTC 2004


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






More information about the Squeak-dev mailing list