Super Super

Omnizen and fellow Ballard-ite Kyle Sluder has some thoughts about the behavior of super:

It’s sometimes useful to skip the superclass’s implementation from within an override, calling the grandparent class’s implementation directly. (Bug workarounds are the primary use case that comes to mind.) This can’t be done with the super keyword, but the underlying objc_msgSendSuper runtime call can express this without any difficulty.

I propose that the super keyword be extended to take an optional class argument.

16 Feb 2014

Archive