__noSuchMethod__ and direct proxies

Oliver Hunt oliver at apple.com
Mon Dec 5 09:02:01 PST 2011

IIRC the Cappuccino has its own method dispatch implementation solely to support Obj-Js noSuchSelector (or whatever it's called) method.  They take quite a perf hit because of that, and it would be unnecessary if there were someway to implement a __noSuchMethod__ analog.  I suspect the direct proxy in the protochain would do the trick,


On Dec 5, 2011, at 8:20 AM, John J Barton wrote:

> On Mon, Dec 5, 2011 at 2:48 AM, Tom Van Cutsem <tomvc.be at gmail.com> wrote:
>> Hi,
>> There have previously been discussions on this list and elsewhere about
>> whether or not proxies cover the __noSuchMethod__ use case [1,2].
> ...
>> [1] https://mail.mozilla.org/pipermail/es-discuss/2011-October/017467.html
>> [2] https://bugzilla.mozilla.org/show_bug.cgi?id=683218#c8
> The references here discuss how proxies can/cannot implement
> __noSuchMethod__. Is there a use case for __noSuchMethod__? As in why
> would anyone want such a thing?
> Thanks,
> jjb
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

More information about the es-discuss mailing list