List of reserved words
Maxim Fomin
maxim at maxim-fomin.ru
Thu Oct 11 13:41:02 PDT 2012
On Thursday, 11 October 2012 at 07:00:10 UTC, Jacob Carlborg
wrote:
> On dlang.org there's a page containing all the keywords, which
> are reserved:
>
> http://dlang.org/lex.html
>
> But it would also be nice to have a list of words/symbols that
> are not keywords but could otherwise be thought of being
> reserved. These are words that will make it problematic if used
> in user code in the wrong context. I thinking mostly of naming
> a module "object" or a class "Object", the compiler will not be
> happy seeing that.
>
> What other "reserved" words like these does D have?
From druntime: one underscore + lower letter:
http://pastebin.com/iztLZh4m. I guess parsing for double
underscores and one underscore + upper letter is meaningless,
since defining such identifiers is looking for problems anyway.
More information about the Digitalmars-d
mailing list