2011年10月21日 星期五

清楚講解 變數scope的網站

http://phobos.ramapo.edu/~amruth/grants/problets/courseware/scope/



static ancestors,static parents
static non-local referencing environment :
of a procedure p() is the set of all the unique variables declared in the static ancestors of p(), that have not been re-declared in the procedure p().


dynamic ancestors
The dynamic non-local referencing environment :
of a procedure p() is the set of all the unique variables declared in the dynamic ancestors of p(), that have not been re-declared in the procedure p().

沒有留言:

張貼留言