[Newbies] Best place to ask Smalltalk questions?

Matthew Fulmer tapplek at gmail.com
Sat Aug 2 04:44:37 UTC 2008

On Sat, Aug 02, 2008 at 12:08:51AM -0400, Sean Allen wrote:
> you have an instance variable you only want to allow to set once,
> never again ( in that fashion its like variable binding in erlang. )
> what is the accepted smalltalk way to do this? is there one?

ivar: aValue
    ivar ifNotNil: [self error: 'variable already set'].
    ^ ivar := aValue

> how are the equivalent of c++ virtual methods handled in smalltalk?
> what is the standard idiom for that design pattern?

All methods in Smalltalk are virtual, i.e., looked up when

> those are two, i have more. is this the right forum? if not,
> where would be the right forum?

Here or squeak-dev.

Matthew Fulmer -- http://mtfulmer.wordpress.com/

More information about the Beginners mailing list