const int vs. int const
Timon Gehr via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 15 11:23:46 PDT 2014
On 08/15/2014 07:18 PM, John wrote:
>
> btw, it works either way if I use auto
>
> auto const minWage = 11; //works
> const auto minWage = 11; //works
> ...
auto does not serve any purpose here.
> The same flexibility is missing when the actual type is used.
In particular, auto is not a wild-card type in that example.
const minWage = 11;
More information about the Digitalmars-d
mailing list