Subj : Re: Get, Put methods of the Scriptable interface To : netscape.public.mozilla.jseng From : Brendan Eich Date : Mon Sep 01 2003 03:43 pm Eric Merritt wrote: >Brendan Eich wrote in message news:... > > >>You could give the methods and other "unindexed" properties negative >>indexes. But do you really need every property to have two identifiers, >>an index and a name? >> >>/be >> >> > >I was under the impression that it wasnt optional. If I had my >druthers I would just ignore indexed values for non-data properties. >Does the engine not use the index values to retrieve function objects? > > The engine (either Rhino or SpiderMonkey) doesn't assign any identifiers you don't tell it about when creating properties. There is no built-in aliasing of obj.firstNamedProp and obj[0] when you set obj.firstNamedProp. /be .