Max line length (was Re: programming challenge ...)

Joe English jeenglis at nunki.usc.edu
Thu Mar 16 08:31:31 AEST 1989


guy at auspex.UUCP (Guy Harris) writes:
>Well, there's no standard, there's just a proposed standard, but the
>December 7, 1988 draft, which is probably now the proposed standard (and
>which is probably going to be very similar to the final standard) says:
>
>	2.2.4.1 Translation limits
>
>	   The implementation shall be able to translate and execute at
>	least one program that contains at least one instance of every
        ^^^^^ ^^^ ^^^^^^^
>	one of the following limits:
>

Huh?  Now I'm probably reading this wrong, but the way I
parse this sentence it means:

 If (there exists a program P such that
        (     (for all L in {following limits} P contains an instance of L)
          and (the implementation can deal with P)
        )
    )
 then the implementation is in compliance with section 2.2.4.1.


Shouldn't it say instead:

  If (for all programs P such that 
            (there exists an L in {following limits} such that P contains L)
      the implementation can handle P
     )
  then the implementation is in compliance with section 2.2.4.1?

Put simply, if I write a compiler that will correctly
translate and execute *one* program that contains a 509-character
line, a 31-character identifier, and so on, but barfs
on all other programs, does that pass 2.2.4.1?

(Obviously the answer is "no," and I've misinterpreted the
excerpt.  Can someone explain the language here?)

--Joe English

  jeenglis at nunki.usc.edu



More information about the Comp.lang.c mailing list