help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Iliad: Widget class initialization


From: Stefan Schmiedl
Subject: Re: [Help-smalltalk] Iliad: Widget class initialization
Date: Thu, 30 Jul 2009 17:30:21 +0200

On Thu, 30 Jul 2009 17:30:02 +0300
Bèrto ëd Sèra <address@hidden> wrote:

> Hi!
> 
> One more problem. It looks like even Iliad.Application does not get
> class initialization, so I have nowhere to call the initialization of
> my widget classes. 

If you have no place, make one:

  Object subclass: Thingie [ 
    Thingie class [ 
      initialize [ 
        super initialize.
        'class init' printNl
      ]
    ]
    initialize [ 
      'object init' printNl
    ]
  ]

  Eval [
    Thingie initialize
  ]

That's the way it is done in the Seaside packages, for example.

I wonder if that could/should be folded away by the loader,
since it is done automatically in the other Smalltalks I know.

s.





reply via email to

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