August Karlstrom
2018-03-01 13:23:10 UTC
Are the order relations in Oberon (latest rev.) supposed to work with
unterminated character arrays or is it considered undefined behavior?
Example:
MODULE test;
IMPORT Out;
VAR s: ARRAY 1 OF CHAR;
BEGIN
s[0] := "A";
IF s = "A" THEN
Out.String("equal")
ELSE
Out.String("not equal")
END;
Out.Ln
END test.
-- August
unterminated character arrays or is it considered undefined behavior?
Example:
MODULE test;
IMPORT Out;
VAR s: ARRAY 1 OF CHAR;
BEGIN
s[0] := "A";
IF s = "A" THEN
Out.String("equal")
ELSE
Out.String("not equal")
END;
Out.Ln
END test.
-- August