"DECWRL Modula-2 Question"
Peter Herr
herr at infbs.UUCP
Tue Apr 25 21:21:29 AEST 1989
This Modula-2 program
MODULE exprt;
FROM io IMPORT output, Writef;
VAR a, b: INTEGER;
BEGIN
b := 101;
a := 10 * (b - 1);
Writef(output, "'%8d'\n", a);
IF a = 1000
THEN Writef(output, "This is ok !\n")
ELSE Writef(output, "This is n o t ok !\n")
END;
END exprt.
delivers the following output: (when compiled with the
DECWRL Modula-2 Compiler under ULTRIX 3.0) :
' 1010'
This is n o t ok !
Does this ugly error appear with older ULTRIX-versions, too ?
Does anybody know if DEC will come out sometime with a new Version of
this Compiler in which all the errors (some of which are known for
at least 4 years) are corrected ?
Peter Herr
Technische Universitaet Braunschweig
Institut fuer Programmiersprachen und Informationssysteme
Abteilung Datenbanken
Postfach 3329
D-3300 Braunschweig
e-mail: uucp: herr at infbs.uucp
bitnet: herr at dbsinf6.bitnet
More information about the Comp.unix.ultrix
mailing list