Created
March 25, 2015 14:10
-
-
Save FedericoPonzi/d28a49d5814748158c7e to your computer and use it in GitHub Desktop.
Esempio di programma in SML (sintassi eager statica)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
val x = 1 | |
in | |
let | |
(* Essendo statico, si salva (y, x, E=((x,1))). Quando andra' a risolvere questo metodo, assegnera' x ad 1. *) | |
val y = (fn z => x) | |
in | |
let | |
val x = 2 | |
in | |
y 3 | |
end | |
end | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment