[squeak-dev] [bug] 0007770: cascading does ont work with super
Frank Shearar
frank.shearar at gmail.com
Wed Jun 19 10:44:41 UTC 2013
On 19 June 2013 11:26, Vaidotas Didžbalis <vaidasd at gmail.com> wrote:
> 2013/6/19 Frank Shearar <frank.shearar at gmail.com>:
> ...
>> Do you expect this to be equivalent to
>>
>> super initialize.
>> self setListProperties.
>>
>> or to
>>
>> super initialize.
>> super setListProperties.
> ...
>> Given that ambiguity I'd say failing to compile is the right answer.
>
> I expected the latter. I think about super as an object. Anyway, the
> error message "Cascading not expected ->" is confusing here.
Right. Of course, super _isn't_ an object: it's more like "the next
token is a message; send that message to myself but start the method
lookup in my parent's method dictionary."
But, to my horror, "a := super" is valid syntax!
frank
More information about the Squeak-dev
mailing list
|