Attribute inference for auto functions?

Peter Alexander peter.alexander.au at gmail.com
Wed Apr 17 07:00:05 PDT 2013


On Wednesday, 17 April 2013 at 12:49:41 UTC, Andrej Mitrovic
wrote:
> 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.

Sorry, just saw this. Ignore previous reply.


More information about the Digitalmars-d mailing list