comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Ada standard and maximum line lengths
Date: Mon, 28 Jan 2013 23:29:38 +0200
Date: 2013-01-28T23:29:38+02:00	[thread overview]
Message-ID: <amo8u2Fh3ngU1@mid.individual.net> (raw)
In-Reply-To: <ke6o2n$jrj$1@dont-email.me>

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."

This is followed by the note (maybe only in the AARM, which is what I
have in hand):

"Implementation defined: Maximum supported line length and lexical
element length."

As I understand ARM 2.2(14), it does not define a coupling between
maximum line length and maximum lexical-element length (i.e. maximum
identifier length). It requires both limits to be at least 200
characters, but does not require them to be equal. The limits are stated
in separate sentences -- the two first sentences in the quote.

Perhaps the third and last sentence in ARM 2.2(14), which mentions both
limits in one sentence, confuses the issue. Occasionally, people write
sentences of the form "The A and B are ..." and imply that A and B are
the same.

If the limits are meant to be coupled (equal), there should some text
such as "An implementation shall accept lexical elements that are as
long as the maximum supported line length". But that is not what the ARM
says. And I don't think that one can deduce such a rule just from the
fact that the required minimum limits are both 200 characters.

In the same post in which Jeffrey quoted ARM 2.2(14), it seemed he was
reading it to mean that there is a coupling. I was asking how he deduced
that coupling. I'm asking the same question as you (J-P.), but from the
other side of the burden of proof.

So, can you show the ARM verse that says that a compiler is not allowed
to limit identifiers to 200 characters, if it supports lines of 10,000
characters?

I haven't scanned the whole ARM to see if there is some other text that
requires max line length and max identifier length to be coupled. But it
would be strange to have such text in some other distant part of the
ARM, and not in 2.2 where it would clearly belong.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
      .      @       .



  reply	other threads:[~2013-01-28 21:29 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-28  5:02 Ada standard and maximum line lengths Lucretia
2013-01-28  6:01 ` J-P. Rosen
2013-01-28  6:28 ` Jeffrey Carter
2013-01-28  8:05   ` Niklas Holsti
2013-01-28 16:42     ` Jeffrey Carter
2013-01-28 20:22       ` Niklas Holsti
2013-01-28 20:46         ` J-P. Rosen
2013-01-28 21:29           ` Niklas Holsti [this message]
2013-01-29  1:42             ` Randy Brukardt
2013-01-29  6:15             ` J-P. Rosen
2013-01-29 10:25               ` Niklas Holsti
2013-01-29 11:31                 ` Georg Bauhaus
2013-01-29 12:11                   ` Simon Wright
2013-01-29 12:31                   ` Niklas Holsti
2013-01-29 12:37                     ` Niklas Holsti
2013-01-29 15:29                     ` Georg Bauhaus
2013-01-29 16:58                       ` Niklas Holsti
2013-01-29 17:51                         ` Georg Bauhaus
2013-01-29 18:18                           ` Shark8
2013-01-29 19:54                           ` Niklas Holsti
2013-01-29 23:12                             ` Georg Bauhaus
2013-01-30  9:18                               ` Niklas Holsti
2013-01-30  9:51                                 ` Simon Wright
2013-01-30 15:28                                 ` Robert A Duff
2013-01-30 23:24                                   ` Randy Brukardt
2013-01-31  2:16                                     ` Robert A Duff
2013-01-31  9:10                                       ` Stefan.Lucks
2013-01-31  9:30                                         ` Niklas Holsti
2013-01-31  9:51                                           ` Simon Wright
2013-01-31 10:56                                           ` Georg Bauhaus
2013-01-31 18:02                                         ` Jeffrey Carter
2013-01-31 23:54                                       ` Randy Brukardt
2013-02-01  9:15                                         ` Niklas Holsti
2013-02-01 23:13                                           ` Randy Brukardt
2013-02-02  1:24                                             ` Lucretia
2013-02-02 14:12                                               ` Robert A Duff
2013-02-05  2:09                                               ` Randy Brukardt
2013-01-31  9:03                                   ` Dmitry A. Kazakov
2013-01-30  9:37                               ` Simon Wright
2013-01-30 12:02                                 ` Georg Bauhaus
2013-01-29 23:47                             ` Jeffrey Carter
2013-01-30  7:24                               ` Niklas Holsti
2013-01-30 10:09                                 ` J-P. Rosen
2013-01-29 20:36                 ` Niklas Holsti
2013-01-29 21:01                   ` Robert A Duff
2013-01-29 21:14                   ` Dmitry A. Kazakov
2013-01-28  8:18 ` Dmitry A. Kazakov
2013-01-28 10:02   ` Maciej Sobczak
2013-01-28 11:57     ` Georg Bauhaus
2013-01-28 13:28       ` Niklas Holsti
2013-01-28 15:14       ` J-P. Rosen
2013-01-28 16:13       ` Dmitry A. Kazakov
2013-01-28 15:13     ` Dmitry A. Kazakov
2013-01-28 13:49 ` Robert A Duff
2013-01-29  2:09   ` Randy Brukardt
2013-01-29 18:46 ` Lucretia
2013-01-29 20:53   ` Robert A Duff
2013-01-29 21:22   ` Dmitry A. Kazakov
2013-01-30  3:22     ` Lucretia
2013-01-30  9:49       ` Dmitry A. Kazakov
2013-01-30 23:28         ` Randy Brukardt
2013-02-01  1:48       ` Shark8
2013-01-29 21:29   ` Dmitry A. Kazakov
2013-01-29 21:53   ` Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox