Create const regex?

Jesse Phillips via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 7 14:35:30 PDT 2014


On Friday, 6 June 2014 at 12:08:40 UTC, Rikki Cattermole wrote:
> In none of your examples you have not defined the type of the 
> variables. However you are giving it an access modifier.
> I assume you are wanting auto

D does not require providing a type if const/immutable is use. I 
think at this point it's changed, but 'auto' comes from C storage 
classes (which is the default). So by providing a storage class 
the compiler would infer the type and 'auto' was so descriptive 
for it.


More information about the Digitalmars-d-learn mailing list