typed array strawman proposal

2010-02-05 Thread Kenneth Russell
Apologies for not replying to the thread properly; just joined the list. The typed array proposal Vlad sent out covers the WebGL use case and others which assemble data on the CPU to be handed to, for example, a graphics or audio subsystem. I've seen some feedback that the proposal misses an impo

Re: Friday afternoon scoping quiz

2010-02-05 Thread Dmitry A. Soshnikov
Hello P, >Scope chain (f): [ > global, > {foo: undefined, bar: undefined}, > {foo: 20, test: function () {...}}, > {activation object of 'f' context} >] Sorry, scope chain of 'f' context sure will *not* contain object added by the 'with' statement (my typo), scope chain above was described fo

Re: Friday afternoon scoping quiz

2010-02-05 Thread Dmitry A. Soshnikov
Hello P, Saturday, February 6, 2010, 1:14:33 AM, you wrote: > ({ > 'foo': 20, > 'test': function () { > var f = function () { > alert("foo:"+ foo); > alert("this.foo:"+ this.foo); > alert("bar:"+ bar); > } > with (this) { > var foo = 42; > var

Re: Friday afternoon scoping quiz

2010-02-05 Thread P T Withington
On 2010-02-05, at 17:42, P T Withington wrote: >>> >>> Flash 10 gives me the answer I expected. I have not tested other JS >>> engines. >> >> Flash 10 bug. > > I will report. Thanks. FTR, appears to be already reported as: https://bugs.adobe.com/jira/browse/ASC-2257 _

Re: Friday afternoon scoping quiz

2010-02-05 Thread P T Withington
On 2010-02-05, at 17:25, Brendan Eich wrote: > On Feb 5, 2010, at 2:14 PM, P T Withington wrote: > >> ({ >> 'foo': 20, >> 'test': function () { >> var f = function () { >> alert("foo:"+ foo); >> alert("this.foo:"+ this.foo); >> alert("bar:"+ bar); >> } >> with (this) { >> va

Re: Friday afternoon scoping quiz

2010-02-05 Thread Brendan Eich
On Feb 5, 2010, at 2:14 PM, P T Withington wrote: ({ 'foo': 20, 'test': function () { var f = function () { alert("foo:"+ foo); alert("this.foo:"+ this.foo); alert("bar:"+ bar); } with (this) { var foo = 42; var bar = 21; f.call(this); } "Doctor, it

Friday afternoon scoping quiz

2010-02-05 Thread P T Withington
({ 'foo': 20, 'test': function () { var f = function () { alert("foo:"+ foo); alert("this.foo:"+ this.foo); alert("bar:"+ bar); } with (this) { var foo = 42; var bar = 21; f.call(this); } } }).test(); -- By my reading, `foo` and