Attribute inference for auto functions?

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Apr 17 05:49:25 PDT 2013


On 4/17/13, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> As for being able to use 'const' for type inference it's completely an
> implementation issue. It's not by design at all.

Actually I'm wrong about this now that I've re-read the spec. You can
use another storage class instead of auto (strangely I don't remember
this being discussed in TDPL though). However there are too many
things in DMD which are "storage classes", when they shouldn't be.
E.g. @property.


More information about the Digitalmars-d mailing list