On 11 October 2012 07:36, Jacob Carlborg <[email protected]> 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? > > -- > /Jacob Carlborg
Pick your list from object.d: Object Throwable Exception Error ClassInfo ModuleInfo TypeInfo TypeInfo_Class TypeInfo_Interface TypeInfo_Struct TypeInfo_Typedef TypeInfo_Pointer TypeInfo_Array TypeInfo_AssociativeArray TypeInfo_Enum TypeInfo_Function TypeInfo_Delegate TypeInfo_Tuple TypeInfo_Const TypeInfo_Invariant TypeInfo_Shared TypeInfo_Wild TypeInfo_Vector -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
