Login  Register

Re: Help on operators in Dolphin

Posted by Chris Uppal-3 on Dec 22, 2005; 10:45am
URL: https://forum.world.st/Help-on-operators-in-Dolphin-tp3377011p3377017.html

Sean,

> ##() doesn't work in a workspace, only in compiled methods.

Small correction -- ##( ... ) does work in workspaces.  The only difference is
that "self" is bound to nil in a workspace so ##( self ) will evaluate to nil
there.  In a method ##( self ) will evaluate to the class where the method is
defined -- there's no profundly logical reason why that should be the case, but
it's handy that /at compile time/ self evaluates to the class.

    -- chris