Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Need second advice concerning scope exercice

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?

Name: Anonymous 2009-10-26 20:48

so in both cases the output is 20?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List