CompuServe Messages

#Modula 2 bug

    19-Mar-87 20:00:07
Sb: #Modula 2 bug
Fm: Mike Lawrence 70030,160
To: All
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