Explain and justify what goes wrong when the following code is given to a Standard ML system:
Fantastic news! We've Found the answer you've been seeking!
Question:
Explain and justify what goes wrong when the following code is given to a Standard ML system: fun id x = x; val finalist = ref [id]; fnlist:= (fn x=>x+1) :: !finalist; fnlist:= Math. sqrt:: !finalist; print (hd(!finalist)(1))
Related Book For
Operating Systems Internals and Design Principles
ISBN: 978-0133805918
8th edition
Authors: William Stallings
Posted Date: