From: Dmitry A. Soshnikov on
Inform you about the next translation:

"ECMA-262-3 in detail. Chapter 4. Scope chain."

http://dmitrysoshnikov.com/ecmascript/chapter-4-scope-chain/

Dmitry.
From: Garrett Smith on
Dmitry A. Soshnikov wrote:
> Inform you about the next translation:
>
> "ECMA-262-3 in detail. Chapter 4. Scope chain."
>
> http://dmitrysoshnikov.com/ecmascript/chapter-4-scope-chain/
>
> Dmitry.
(variables, function declarations and formal parameters of functions)

A parameter creates a variable. If you are going to differentiate
parameters, use "variable declaration" as the first.

The paragraph:
Also, we know that the variable object is created and filled with
initializing values every time on entering the context, and that its
updating occurs at interpretation of a code
--
Garrett
comp.lang.javascript FAQ: http://jibbering.com/faq/
From: Garrett Smith on
Garrett Smith wrote:
> Dmitry A. Soshnikov wrote:
>> Inform you about the next translation:
>>
>> "ECMA-262-3 in detail. Chapter 4. Scope chain."
>>
>> http://dmitrysoshnikov.com/ecmascript/chapter-4-scope-chain/
>>
>> Dmitry.
> (variables, function declarations and formal parameters of functions)
>
> A parameter creates a variable. If you are going to differentiate
> parameters, use "variable declaration" as the first.
>
> The paragraph:
> Also, we know that the variable object is created and filled with
> initializing values every time on entering the context, and that its
> updating occurs at interpretation of a code

Sorry. I apparently hit a kbd shortcut and sent the message prematurely.

As I was saying, the paragraph:

| Also, we know that the variable object is created and filled with
| initializing values every time on entering the context, and that its
| updating occurs at interpretation of a code

is a bit odd, grammatically. What are "initializing values"? I believe
you mean the for a function declaration, it would be that function and
for a variable, it would be `undefined`.

In that case, I would reword it to use standard terminology.

Upon entering an execution context, the variable object is created. For
each parameter variable, a property is created and given the initial
value `undefined`. For each FunctionDeclaration, a property with the
function's Identifier is created and given the value of the function.
For each variable declaration, a property is created and given the value
`undefined`.

I would also mention the specification section number as a supporting
reference to the statements. In this case s 10.1.3 (Variable Instantiation).
--
Garrett
comp.lang.javascript FAQ: http://jibbering.com/faq/
From: Thomas 'PointedEars' Lahn on
Garrett Smith wrote:

> Dmitry A. Soshnikov wrote:
>> Inform you about the next translation:
>>
>> "ECMA-262-3 in detail. Chapter 4. Scope chain."
>>
>> http://dmitrysoshnikov.com/ecmascript/chapter-4-scope-chain/
>>
>> Dmitry.
> (variables, function declarations and formal parameters of functions)
>
> A parameter creates a variable.

No, it does not.

> If you are going to differentiate parameters, use "variable declaration"
> as the first.

ACK


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
From: Thomas 'PointedEars' Lahn on
Garrett Smith wrote:

> Garrett Smith wrote:
>> Dmitry A. Soshnikov wrote:
>>> Inform you about the next translation:
>>>
>>> "ECMA-262-3 in detail. Chapter 4. Scope chain."
>>>
>>> http://dmitrysoshnikov.com/ecmascript/chapter-4-scope-chain/
>>>
>>> Dmitry.
>> (variables, function declarations and formal parameters of functions)
>>
>> A parameter creates a variable. If you are going to differentiate
>> parameters, use "variable declaration" as the first.
>>
>> The paragraph:
>> Also, we know that the variable object is created and filled with
>> initializing values every time on entering the context, and that its
>> updating occurs at interpretation of a code
>
> Sorry. I apparently hit a kbd shortcut and sent the message prematurely.

Probably Ctrl+Return, see the File menu of your Thunderbird's Compose
Message window.

> [...]
> In that case, I would reword it to use standard terminology.
>
> Upon entering an execution context, the variable object is created. For
> each parameter variable, a property is created and given the initial

.... a property _on that object_ ... (or whatever preposition fits better)

> value `undefined`. For each FunctionDeclaration, a property with the
> function's Identifier is created and given the value of the function.

Not "the value of the function", that is too easily confused with the
return value. The declared function itself is in a sense an object value
(a Function instance), but what is stored in the property is only a
reference to the object.


PointedEars
--
Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.
-- Richard Cornford, cljs, <cife6q$253$1$8300dec7(a)news.demon.co.uk> (2004)