Re: Global functions

2007-12-14 Thread Brendan Eich
On Dec 13, 2007, at 11:42 PM, Lars T Hansen wrote: I believe let function is broken in the RI (it has been in the past). I encouraged Michael to file a trac ticket, and he did: http://bugs.ecmascript.org/ticket/337 Anyone else who finds an RI bug and can't see a report of it in the

Re: Global functions

2007-12-14 Thread Lars T Hansen
Also see http://bugs.ecmascript.org/ticket/158. --lars On Dec 14, 2007 7:42 PM, Brendan Eich [EMAIL PROTECTED] wrote: On Dec 13, 2007, at 11:42 PM, Lars T Hansen wrote: I believe let function is broken in the RI (it has been in the past). I encouraged Michael to file a trac ticket, and

Re: Global functions

2007-12-13 Thread liorean
On 14/12/2007, Michael O'Brien [EMAIL PROTECTED] wrote: So should functions be treated like var declarations or as let declarations. Seems like they are like vars in the RI. Is this right? I don't see how they could be anything else for ES3 compatibility's sake. At least, within a single

Re: Global functions

2007-12-13 Thread Michael O'Brien
- Original Message - From: Michael O'Brien [EMAIL PROTECTED] To: es4-discuss es4-discuss@mozilla.org Sent: Thursday, December 13, 2007 7:10:41 PM (GMT-0500) America/New_York Subject: Global functions Are global functions declared with block or global scope. ie. declared in the block

Re: Global functions

2007-12-13 Thread Lars T Hansen
: Thursday, December 13, 2007 7:10:41 PM (GMT-0500) America/New_York Subject: Global functions Are global functions declared with block or global scope. ie. declared in the block object or var object? Consider: package { { function fun() { print(1