help-smalltalk
[Top][All Lists]
Advanced

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

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


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Smalltalk syntax...? (cascading method calls)
Date: Thu, 25 Jun 2009 11:07:40 +0200
User-agent: Thunderbird 2.0.0.17 (X11/20081009)


(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'.

This one would work:

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

Basically you cannot chain unary messages after a semicolon.

Paolo




reply via email to

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