From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,eda443e5aaf028c4 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Suprise of comparison result Date: 1999/10/18 Message-ID: <7ufaar$im7$1@nnrp1.deja.com>#1/1 X-Deja-AN: 537275143 References: <37fd7e17.0@news.pacifier.com> <7tk5d5$2qu$1@nnrp1.deja.com> <7tke70$lf4$1@ash.prod.itd.earthlink.net> <7udvrl$npq$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Oct 18 14:20:20 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-10-18T00:00:00+00:00 List-Id: In article <7udvrl$npq$1@nnrp1.deja.com>, Robert Dewar wrote: > In article <7tke70$lf4$1@ash.prod.itd.earthlink.net>, > "David C. Hoos, Sr." wrote: > > I believe what happens is that the literals -32768 and 32767 > ^^^^^^ > > This is not a literal, very few languages have negative > literals (APL is an exception). Understanding this is > important in nearly all languages. That bit me quite badly recently in OpenToken too. Recognition of negative literals had to be removed to support programming languages, but that broke existing code for simpler languages. We eventually had to add support for negative literals as an option. The header comments may be enlightening: -- One would probably want to disallow signs in languages that use '-' or -- '+' as an operator between integers. If your syntax does not have such a -- concept, you will probably want to allow them. -- T.E.D. Sent via Deja.com http://www.deja.com/ Before you buy.