help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] [RFC] New Smalltalk syntax v2


From: Robert Collins
Subject: Re: [Help-smalltalk] [RFC] New Smalltalk syntax v2
Date: Sun, 25 Mar 2007 21:53:08 +1000

On Fri, 2007-03-16 at 09:52 +0100, Paolo Bonzini wrote:
> 
> One other bit I don't like of Ian's syntax is:
> 
>    ArrayedCollection : SequenceableCollection ( size )
> 
> because it looks like it makes "addInstVarName:" hard.  With
> the proposed syntax, it would be
> 
>    SomeClass extend [
>        | newInstVar
>    ] 

Well adding an instance variable isn't possible in pepsi at the moment:
you change the size of an object when you clone another - you can define
how big the cloned object should be by overriding the parents #size, or
by supplying size at the clone time.

-Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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