Re: 8.2.4 The Reference Specification Type

2012-12-18 Thread John J Barton
On Tue, Dec 18, 2012 at 11:39 AM, Allen Wirfs-Brock wrote: > ... > > I'r all in 8.2.4.1 and 8.2.4.2 (GetValue/SetValue). > > Consider an expression like: > 123.0.toFixed > > This evaluates to a Reference value {base: 0, referenced name: "toFixed", > strict: false} > (or strict is true if in s

Re: 8.2.4 The Reference Specification Type

2012-12-18 Thread Allen Wirfs-Brock
oops, I meant {base: 123.0, referenced name: "toFixed", strict: false} below On Dec 18, 2012, at 11:39 AM, Allen Wirfs-Brock wrote: > > On Dec 18, 2012, at 10:42 AM, John J Barton wrote: > >> I'm trying to decode section 8.2.4 >> The Reference Specificat

Re: 8.2.4 The Reference Specification Type

2012-12-18 Thread Allen Wirfs-Brock
On Dec 18, 2012, at 10:42 AM, John J Barton wrote: > I'm trying to decode section 8.2.4 > The Reference Specification Type > > I believe that it is trying to say > obj.prop = ... > obj is reference base > prop is reference name > > But base can also be

Re: 8.2.4 The Reference Specification Type

2012-12-18 Thread Brandon Benvie
Er I was a bit unclear. It would look like: objReference = { base: undefined, name: "obj" }; Which would resolve to the object obj, on an environment record. objPropRefence = { base: IdentifierResolution(objReference), name: "prop" } On Tue, Dec 18, 2012 at 2:01 PM, Brandon Benvie wrot

Re: 8.2.4 The Reference Specification Type

2012-12-18 Thread Brandon Benvie
In that example "obj" itself would first have been a Reference with no base and the name "obj" which would resolve to an environment record. Then after "prop" would be another Reference with the resolved obj as its base and "prop" as the name. ___ es-disc

8.2.4 The Reference Specification Type

2012-12-18 Thread John J Barton
I'm trying to decode section 8.2.4 The Reference Specification Type I believe that it is trying to say obj.prop = ... obj is reference base prop is reference name But base can also be Boolean, String, Number and env. record. I can't figure out what a reference name means in thes