Subj : Re: Array Object index question To : Izman From : Brendan Eich Date : Wed Oct 29 2003 12:24 pm Izman wrote: >If I return the same object all of the time var c would never have the >expected value of Object1.obj3(2).prop1, it would return >Object1.obj3(4).prop1 wouldn't it? > If the argument to obj3() is the initial value of prop1, then yes. It depends on how you define things. You need to decide that based on what's the best programming model, not on what you may be able to implement (as with help from the group here, you'll soon be able to implement many things ;-). If you want obj3 to construct a new object on each call, then I suggest you give it a name that connotes that fact: createObject, newObject, constructObject, or some such. /be .