Page 1 of 1

SYSTEM.VAL(INTEGER, NIL) won't compile

Posted: Mon Sep 14, 2020 9:33 pm
by adimetrius
SYSTEM.VAL(INTEGER, NIL(*X*)) does not compile and produces error 111 at (*X*).
Not that it is of any practical value, but the reported error seems to be violating the requirements of the Language Report.

The fix would be to change the following line in DevCPB.StPar1, in the CASE section for valfn:

ELSIF (f IN {Undef, NoTyp(*, NilTyp*)}) OR (f IN {String8, String16}) & ~(HrM.java IN HrM.options) THEN err(111)

Re: SYSTEM.VAL(INTEGER, NIL) won't compile

Posted: Tue Sep 15, 2020 12:01 pm
by Josef Templ
I do agree.
It makes sense to change this in the proposed way for the sake of completeness.

- Josef