I recall that on my question on this thread (https secure.csse.uwa.edu.au run help2002?p np opt U308) it was proposed that we compile code without -Werror, but even if we just use -Wall it also throws all warnings, is that expected and fine? Here i...
ml language rule 7 states that "variables do not need to be defined before being used in an expression", is the line number 3 in following ml code legit ml expression statement?
x -5
print x
y
print y
Q1) I saw the thread that you shared but it means that we will have to store the expression, evaluate it and then handle the value. something like -
double temp entire expression ;
if (temp int(temp)) ....
Q2) So if i understand correctly, the expe...
Just to clarify the third question. i dont mean using nested functions in the ml, but using them while translating ml to c as the gcc compiler doesnt throw any warnings or errors, it works fine.
1) Under the Our ml Language headline, it says, "only a single datatype is supported - real numbers, such as 2.71828", and, "variables do not need to be defined before being used in an expression, and are automatically initialised to the (real) value...