help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] criticism of the new syntax


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] criticism of the new syntax
Date: Wed, 19 Dec 2007 10:34:54 +0100
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

Derek Zhou wrote:
On Tuesday 18 December 2007 12:06:59 am Stephen Compall wrote:
MyClass extend [
    "more methods!"
]

This is already in there.
Cool, how about one small step further, like:
MyClass category: 'new category' extend [
    "more methods!"
]

Yes, even without the "extend" keyword, that's feasible.

Or reusing the existing syntax:
MyClass extend [
        <category: 'new category'>
        "more methods!"
]
So the category pragma apply to all methods in the same block unless there is another pragma inside the method to overwrite.

No, that would change the category of the class.

Paolo




reply via email to

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