On Wed, Sep 10, 2008 at 3:41 PM, David-Sarah Hopwood
<[EMAIL PROTECTED]> wrote:
> Mark S. Miller wrote:
>> On Tue, Sep 9, 2008 at 9:51 PM, Brendan Eich <[EMAIL PROTECTED]> wrote:


>
> This can be fixed by either renaming Function.apply, or conditioning
> on whether there are two or three arguments (the former is more elegant).
> The important point is the need for a static 3-argument version of
> 'apply', not what it is called. I will suggest the name 'apply3' as
> a starting point (for symmetry and convenience 'call3' should also be
> provided).
>

Why would "Function.apply3" need three arguments?

Function.prototype.apply doesn't actually need any arguments.

See for yourself:-

function fun(){ alert(42); }
Function.prototype.apply.call(fun);

> --
> David-Sarah Hopwood
_______________________________________________
Es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to