




















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!





















Every Language has its own scoping rules
scopes (functions, let, anonymous functions)
blocks
scope
Global scope
Foo variables
parameters
labels
Common Block data
Bar
variables
parameters
labels
map
foo
cond
head
cons
let let let
Struct a =
end
fun foo
datatype
fun bar
fun deep
let let let
fun baz
(fn x => (fn y =>
fun map f x =
if null x then [ ] else (f (hd x))::(map f (tl x))
fun add x = (fn y => y + x)
map (add 5) [0,0] =
map (fn y => y + x) [0,0] = where x = 5
map (fn y => y + x) [0,0] =
if null x where x = [0,0], then [ ] f = (fn y => y + x) else (f (hd x))::(map f (tl x))
((fn y => y + x) (hd x))::(map f (tl x))
class three
int n
int fee(int n)
bool fum()
class two extends three
float x
float y
int fee(int n)
float foe()
class one extends two
one z
int fee(int n)
float fie()
class three fee fum
class two fee foe
class one fee fie
Object
⊥
Obj a
X=2. Y=0. Z =
N =
Obj c
X=5. Y=3.
N =
Obj b
X=5. Y=3. Z =
N =
Docsity.com