Charles,
Im a beginner myself, but i think i know the answer to this one... ;)
As far as i know every method returns a value.
If you do not explicitly return a value ^self is returned.
BTW i love this list, and ive learned very much already from it.
Keep up the good work all!
- Jeroen
"C
Best List,
Im very curious to the the 'smalltalk way' to write the following code:
| shape morph |
(2 atRandom == 1)
ifTrue: [shape := RectangleMorph]
ifFalse: [shape := EllipseMorph].
morph := shape new.
I've tried something like:
(#(EllipseMorph RectangleMorph) at: (2 atRandom)) new.
But tha
Benjamin,
{EllipseMorph. RectangleMorph} atRandom new.
Is a nice solution.
Thanky you for your very helpfull answer.
- Jeroen
"Benjamin Schroeder" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> On Jun 22, 2006, at 7:07 PM, Jeroen van Hilst wrote:
>
Aditya,
You can put this inside any method:
self halt. "Will show up a stack trace"
- Jeroen
"Aditya Siram" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
> I am new to Squeak and its debugging interface. I am trying to get a
handle
> on Seaside by setting breakpoint
"Marcus Strehlow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi guys,
>
> self target: aTarget
> actionSelector: #someAction.
>
> And it works. But what if not only an action should be executed, what if
> the actionSelector gets a symbol that requires an argument?
Marcus,