SImple C++ code to D

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 14 07:11:23 PDT 2014


> Generally in D field names start with a lowercase (unless you 
> need them with uppercase).

And user defined type names start with an upper case. This is 
useful, because if you write:

scth[0].Misc.virtualSize = 15;

You see immediately that Misc is not a value but a type. So it 
can't work.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list