Hi,
I just came across the following problem: In a program for numerical computations I use constants for variables with a fixed value because I hope the compiler can produce faster code then. This gives me compiletime errors (division by zero) in code like that:
***********************************
CONST a=0; VAR b: double;
BEGIN IF a<>0 THEN b:=10/a; END.
***********************************
I tried to look this up in the extended pascal standard and found nothing that would make the above code fragment illegal. But the standard is not quite easy to read, so it is very possible I just didn´t understand it. Is this behaviour dependent on compiler switches?