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

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

Postby adimetrius » Mon Sep 14, 2020 9:33 pm

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)
User avatar
adimetrius
 
Posts: 32
Joined: Sun Aug 04, 2019 1:02 pm

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

Postby Josef Templ » Tue Sep 15, 2020 12:01 pm

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

- Josef
Josef Templ
 
Posts: 251
Joined: Tue Sep 17, 2013 6:50 am


Return to Bug

Who is online

Users browsing this forum: No registered users and 1 guest

cron