3
$\begingroup$

The ActionScript 3 specification frequently uses the term "frame" within the verification phase such as in:

(1)

Code inside a with statement will have a with frame as the inner most scope on the scope chain.

(2)

Let frame be an empty activation frame

Is "frame" the same as "scope" in terms of the scope chain?

$\endgroup$

1 Answer 1

2
$\begingroup$

In my experience, scope tends to refer to regions of source code in which certain names/variables/symbols are available, and frame (or related terms like stack frame or activation frame, but the ActionSCript 3 specification appears to be making a distinction between "frames" and "activation objects") refers to a memory region or object that exists when the compiled code is being executed that keeps track of associations between names/variables/symbols and values.

So they are usually different but closely related concepts, scope being generally a concept discussed as part of the language design, and frame being a concept for discussing the implementation. As far as I can tell, the ActionScript 3 specification simply does not make a distinction between design and implementation in this case.

$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.