On Sat, Mar 22, 2008 at 4:32 PM, Dean Edwards <[EMAIL PROTECTED]> wrote:
>  Dean Edwards wrote:
>   > I think that the problem is that Array generics were added later.
>   >
>   > From bugzilla:
>   >> Array.generic(t, ...) is *intended* to be equivalent to
>   >> Array.prototype.generic.call(t,  ...).
>   >
>   > If generics were considered when first designing the language then the
>   > above statement would have been the other way round.
>   >
>   > e.g.
>   >
>   > Array.prototype.forEach = function(block, context) {
>   >   Array.forEach(this, block, context);
>   > }
>   >

I don't see how that helps, unless you expect A.p.g.c(null, f) to
differ from A.g(null, f) -- the former will need to make a |this| from
null, giving the window object in browser embeddings.  I don't believe
that they should so differ -- do you?

Mike
_______________________________________________
Es4-discuss mailing list
Es4-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to