On Sat, Mar 10, 2001 at 12:29:43AM +0100, Paolo Molaro wrote:
> My understanding is that symbols with double underscore or underscore
> followed by an uppercase letter are reserved, while _something
> symbols are ok if they are not exported and that is actually
> what we are doing. I prefer _perl because it is readily apparent
> that the interface is private. Besides ANSI C allows a compiler to
> consider only the first 6 chars in identifiers: we don't want to go
> that way.

>From section 7.1.3, "Reserved Identifiers":

  -- All identifiers that begin with an underscore and either 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 identifier
     and tag name spaces.

Your comment regarding implementation limits is a valid one -- I do
not believe that it is worth supporting conforming C implementations
which do not support reasonably sized identifiers.  This is a rather
different matter than gratuitously invading the compiler's reserved
namespace, however.

                          - Damien

Reply via email to