[Seaside-dev] basicNew

Avi Bryant avi at dabbledb.com
Mon Sep 29 19:56:01 UTC 2008


On Mon, Sep 29, 2008 at 12:50 PM, Randal L. Schwartz
<merlyn at stonehenge.com> wrote:

>  YourClass >> initialize
>    super initialize.
>    self initalizeWithX: 0 andY: 0.
>    ^self. "implied if absent"
>
>  YourClass >> initalizeWithX: x andY: y
>    self x: x.
>    self y: y.
>
> There.  Now super is called in the right place... by the method that
> is overriding it.

Assuming no other changes to my code, this means that super's
initialize is not called when you use the #x:y: or #point: class side
creation methods, but *only* when you use a bare #new.

Avi


More information about the seaside-dev mailing list