Mail Archives: djgpp/1999/07/14/08:09:52
At 10:12 AM 7/14/99 +0300, Eli Zaretskii wrote:
>On 13 Jul 1999, Martin Str|mberg wrote:
>
>Any name that begins with three underscores has two underscores at its
>beginning, right?
>
> > Is there some other way to get unique identifiers?
>
>Not in C, not that I know of, anyway.
>
>The Standard promises that if you don't use any of the names reserved
>by it, you should be safe, but that's only good for applications, not
>for libraries.
Just for reference:
ISO/IEC 9899:1990 Programming Languages - C, p.97
7.1.3 Reserved identifiers
[...]
- All identifiers that begin with an underscore and either with an
uppercase letter or another underscore are always reserved for any use.
- All identifiers that begin with an underscore are always reserved for use
as identifiers with file scope in both the ordinary identifiers and tag
name spaces.
[...]
The second paragraph is somewhat unclear to me.
Well, my english has been better some time ...
Does it mean:
- I am allowed to use _abcdef as an identifier with file scope *ONLY*.
or
- I am *NOT* allowed to use _abcdef as an identifier with file scope.
Anyone out there to explain that in easy wording ...
... preferably a lawyer ;-)
Tony
- Raw text -