help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Error in the code


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Error in the code
Date: Tue, 17 Jun 2008 18:08:45 +0200
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)


I couldn't find the problem with this code:

Object subclass: Animal [
        | noise |

        setNoise: noise [
                "An instance method to set the animals noise."
                <category: 'accessing'>

                self noise := noise.

                ^self noise
        ]
]


It gives this error: deneme.st:8: parse error, expected ']'

Sorry if the mistake is too obvious :)

If you want, I'll tell you.  But you should really follow the tutorial.

Paolo




reply via email to

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