Tuesday, February 1, 2022

Digest for comp.lang.c++@googlegroups.com - 3 updates in 2 topics

Tim Rentsch <tr.17687@z991.linuxsc.com>: Feb 01 07:17AM -0800

Richard Damon <Richard@Damon-Family.org> writes:
 
[...]
 
 
> In C99, 6.4.2.1p5 makes that length Implementation Defined. I would
> have to search to see if somewhere there is a guarantee of a minimum
> value for this length
 
Section 5.2.4.1 paragraph 1 says
 
63 significant initial characters in an internal identifier
or a macro name
 
31 significant initial characters in an external identifier
 
By the way I think you mean requirement rather than guarantee.
"james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu>: Feb 01 08:19AM -0800

On Tuesday, February 1, 2022 at 10:18:25 AM UTC-5, Tim Rentsch wrote:
> > have to search to see if somewhere there is a guarantee of a minimum
> > value for this length
> Section 5.2.4.1 paragraph 1 says
 
"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:"
 
> 63 significant initial characters in an internal identifier
> or a macro name
 
> 31 significant initial characters in an external identifier
 
Keep in mind that these are NOT minimum permitted values for the
maximum number of significant characters in an identifier (the so-called
minimum maximum that I heard a lot about when C90 first came out).
Strictly speaking, the only requirement that they impose is on the "one
program". It is not a requirement that the implementation treat that many
characters as significant if they occur in any other program
 
> By the way I think you mean requirement rather than guarantee.
 
A requirement that must be met by an implementation of a language in
order to qualify as conforming to a given standard also serves as a
guarantee that anything that does qualify as conforming
implementation of that language meets that requirement.
Ben Bacarisse <ben.usenet@bsb.me.uk>: Jan 31 11:47PM


> So? Very little is part of standard C if you want to be pedantic and all *nix's
> implement open(), read(), write() etc. Unless you thought I meant something
> else by low level.
 
Why are you asking me? Ask Alf why he thinks it matters! He brought it
up, I just bought up the standard C "solution".
 
--
Ben.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: