This preview shows page 1. Sign up to view the full content.
Unformatted text preview: - val d : bool = true; d is declared and specified to be a Boolean!- val a = 11;- val a = 12; a is declared as 11 and then redeclared as 12. In ML, the redeclaring is called hiding the old value the old a is still kept in memory, but inaccessible.- val x = ref 0; x is a reference (a pointer) to a block in memory which stores 0- x := 7; changes the value in memory from 0 to 7- !x; returns value pointed to by x; right now, is 7 value it = syntax for returning an answer where the input variable is not specified ? value it = use(___) A way to run a file as a program (?)...
View Full Document
This note was uploaded on 03/25/2010 for the course COS 320 taught by Professor Greene during the Spring '06 term at Rutgers.
- Spring '06