#Modula 2 bug
I recently found a bug and a workaround for it, in the TDI Modula-2, release 3.
If A is declared LONGREAL, this will not compile: A:=A+1.0; However, this will:
B:=1.0; A:=A+B; where B is also LONGREAL. Note that a similar workaround is
needed for A:=A*2.0; , etc. Apparently constants are marked are REAL
compatible, but not LONGREAL compatible, unless it is a simple equate. Mike
70030,160