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

Post Reply
User avatar
adimetrius
Posts: 68
Joined: Sun Aug 04, 2019 1:02 pm

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

Post 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)
Josef Templ
Posts: 262
Joined: Tue Sep 17, 2013 6:50 am

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

Post by Josef Templ »

I do agree.
It makes sense to change this in the proposed way for the sake of completeness.

- Josef
Post Reply