














































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















































COMP 524 Programming Language Concepts Aaron Block February 12, 2007 Based on notes by N. Fisher, F. Hernandez-Campos, and D. Stotts
5 procedure P1(A1); var X : real; procedure P2(A2); procedure P3(A3); X = 2; end end end
10 aFunc(); sub bFunc{ $c = $a; #$c = 1 if run in or after aFunc } sub aFunc{ $a = 1; bFunc(); }
13 aFunc(); sub bFunc{ $c = $a; #$c is undefined no matter if it #is run at or in bFunc } sub aFunc{ my($a); $a = 1; bFunc(); }
16 aFunc(); sub bFunc{ $c = $a; #$c is undefined if bFunc is run #after aFunc, but is 1 if run #in $aFunc } sub aFunc{ local($a); $a = 1; bFunc();
19
20 0 ... name type Scope Level other curLev