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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8143b93889fe9472 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII X-Received: by 10.66.82.37 with SMTP id f5mr1472965pay.27.1359689336045; Thu, 31 Jan 2013 19:28:56 -0800 (PST) MIME-Version: 1.0 Path: s9ni28038pbb.0!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!news.snarked.org!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!nuzba.szn.dk!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada standard and maximum line lengths Date: Mon, 28 Jan 2013 19:42:54 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <8dfcf819-e1d0-4578-a795-a4bf724b5014@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1359423778 22964 69.95.181.76 (29 Jan 2013 01:42:58 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 29 Jan 2013 01:42:58 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Received-Bytes: 3093 Date: 2013-01-28T19:42:54-06:00 List-Id: "Niklas Holsti" wrote in message news:amo8u2Fh3ngU1@mid.individual.net... > On 13-01-28 22:46 , J-P. Rosen wrote: >> Le 28/01/2013 21:22, Niklas Holsti a �crit : >>> My point is that the compiler's max identifier length can be *less* than >>> its max line length. >> Can you point the RM verse that allows you to think that the compiler is >> allowed to put a max to an identifier length, other than the one that >> results "naturally" from the max line length? > > ARM 2.2(14), the same part that Jeffrey quoted: > > "An implementation shall support lines of at least 200 characters in > length, not counting any characters used to signify the end of a line. > An implementation shall support lexical elements of at least 200 > characters in length. The maximum supported line length and lexical > element length are implementation defined." Interestingly, the ACATS (and ACVC before it) has always assumed that the only limit is the one on the line length. The ACATS has tests parameterized by line length, and these include identifiers up to the line length -- an implementation would have to get a waiver to make the identifier length shorter than the line length. So far as I know, no one has ever asked. Ada 83 had no explicit allowance for limitations, which is probably where the ACATS gets its requirements from. Ada 95 tried to add a minimum line length, but seems to have (unintentionally?) allowed identifiers shorter than the full line length. I tend to agree with your reading of the RM, but it doesn't match practice because of course implementations also have to follow the ACATS requirements. Randy.