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


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to