Re: Why must getSlot be invoked on self when used in a method?
Steve Dekorte <[email protected]> Mon, 23 Jul 2012 16:37:11 -0700
| Newsgroups | gmane.comp.lang.io |
|---|---|
| Message-ID | <[email protected]> |
On 2012-07-23 Mon, at 03:57 PM, eebel_igman wrote:
> Io> getSlotReturnsNil := method(getSlot("m"))
> ==> method(
> getSlot("m")
> )
Hi Eebel,
Try:
getSlotReturnsNil := method(self getSlot("m"))
getSlot is overridden on the Locals object and IIRC, is limited to the Locals themselves. There was a good reason for this, but I don't recall at the moment what it was.
Steve