www.digitalmars.com         C & C++   DMDScript  

D - Leading underscores

reply "Matthew" <matthew.hat stlsoft.dot.org> writes:
Are they reserved, as they are in C/C++?
Apr 20 2004
parent reply Dave Sieber <dsieber spamnot.sbcglobal.net> writes:
"Matthew" <matthew.hat stlsoft.dot.org> wrote:

 Are they reserved, as they are in C/C++?

According to http://www.digitalmars.com/d/lex.html, two leading underscores are used for reserved identifiers. -- dave
Apr 20 2004
parent reply "Matthew" <matthew.hat stlsoft.dot.org> writes:
Thanks Dave

[I'm notoriously bad at reading documentation ...]

"Dave Sieber" <dsieber spamnot.sbcglobal.net> wrote in message
news:Xns94D193B33F1E4dsiebersbc 63.105.9.61...
 "Matthew" <matthew.hat stlsoft.dot.org> wrote:

 Are they reserved, as they are in C/C++?

According to http://www.digitalmars.com/d/lex.html, two leading

 are used for reserved identifiers.

 -- 
 dave

Apr 20 2004
parent Dave Sieber <dsieber spamnot.sbcglobal.net> writes:
"Matthew" <matthew.hat stlsoft.dot.org> wrote:

 Thanks Dave
 
 [I'm notoriously bad at reading documentation ...]

LOL. So am I, but I ran across it by accident when writing the lexer for DCoder :-) -- dave
Apr 20 2004