help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Smalltalk syntax...? (cascading method calls)


From: Joachim Jaeckel
Subject: [Help-smalltalk] Smalltalk syntax...? (cascading method calls)
Date: Thu, 25 Jun 2009 10:32:22 +0200
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Hello,

I have a question regarding what's the difference between both method calls in the example below, because I thought, both are equivalent, but in the later one, I get a parse error:

/home/joe/.st/UrPics.star#VFS.ZipFile/PageTemplate.st:47: parse error, expected ']'

Would be nice, if someone could point me to my error in thinking...
(or my mistake in understanding the smalltalk syntax)

This works:

(e anchor href: 'http://smalltalk.gnu.org')
    image source: '/resources/gst_medium.png' alternativeText: 'abc'.

and this one throws the parse error:


e anchor href: 'http://smalltalk.gnu.org';
    image source: '/resources/gst_medium.png' alternativeText: 'abc'.

Thanks in advance,
Joachim.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]