Name: Anonymous 2009-10-26 19:45
Lets say you have the following expression: (in a syntax identical to haskell)
let x = 5 in
let f1 x y = x + y in
let f2 x y = f1 y x in
f2 7 13
what is the result if the scope is dynamic? static?
i think that with dynamic, the result is 10
and static is 20
is this correct?
let x = 5 in
let f1 x y = x + y in
let f2 x y = f1 y x in
f2 7 13
what is the result if the scope is dynamic? static?
i think that with dynamic, the result is 10
and static is 20
is this correct?