Reserved Identifiers (just making sure)

naptime via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 12 10:50:40 PST 2016


On Tuesday, 12 January 2016 at 17:50:45 UTC, Meta wrote:
> On Tuesday, 12 January 2016 at 16:20:10 UTC, naptime wrote:
>> [...]
>
> Yes, symbols in the form of `_Foo` are not reserved in D. Only 
> symbols beginning with two underscores, such as __traits or 
> __gshared. Technically the different `op*` names such as opCat, 
> opBinary, etc. are reserved as well, int he sense that the 
> compiler will recognize them and do special things, such as 
> writing a + b as a.opBinary!"+"(b).

Oh, wonderful.  Thank you so much!


More information about the Digitalmars-d-learn mailing list