So does this mean that the verdict has been reached for whether or not new objects from function constructors can be classes? It looks like from the bug report that |this| binding will occur to the class instance. What is still open for comment? Kris
----- Original Message ----- From: "Brendan Eich" <[EMAIL PROTECTED]> To: "Kris Zyp" <[EMAIL PROTECTED]> Cc: <[email protected]>; "Jeff Dyer" <[EMAIL PROTECTED]> Sent: Friday, July 20, 2007 5:37 PM Subject: Re: delegating to typed objects > On Jul 10, 2007, at 9:20 AM, Kris Zyp wrote: > >>> The class methods can't be extracted or called without this binding to >>> the object from which they were extracted or in which they were found, >>> so >>> there's no type check. From the reference implementation: >> I thought we had agreed that |this| being c instead of f in f.m() was >> too >> much of a usability hazard. I guess not (although I still think it is). > > It's an open issue. I sent one message making it sound like the RI does > what you want now, but it just ain't so. Sorry for any confusion. > > Here are the tickets I've filed: > > http://bugs.ecmascript-lang.org/ticket/141 > http://bugs.ecmascript-lang.org/ticket/142 > > Please feel free to comment. > > /be > _______________________________________________ Es4-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es4-discuss
