help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] The most recent syntax


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] The most recent syntax
Date: Tue, 17 Jun 2008 09:12:05 +0200
User-agent: Thunderbird 2.0.0.14 (Macintosh/20080421)

Canol Gokel wrote:
Hello,

If I'm not wrong there are more than one way to do some things in Smalltalk when
3.0 is released. What is the most recent syntax in GNU Smalltalk for

 - Creating classes (with some instance variables, class variables, comment 
etc...)

Superclass subclass: Subclass [
    | instVar1 instVar2 |
    ClassVar1 := Dictionary new.
    ClassVar2 := nil.

    <comment: 'here it is'>
]

 - Extending classes

Same as above, with "ClassName extend" or "ClassName class extend" before the bracket.

 - Creating objects

This has not changed, it's standard Smalltalk.

Paolo




reply via email to

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