Optionally strongly typed array indexes

Mason McGill via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 6 15:19:27 PDT 2014


On Friday, 6 June 2014 at 20:22:35 UTC, Philippe Sigaud via 
Digitalmars-d wrote:
> Sorry to intrude, but you can also get:
>
> enum newton = 1.kg/m/s^^2;

Good point. I actually learned D had an exponentiation operator 
just yesterday. It definitely helps readability in this case.


More information about the Digitalmars-d mailing list