static property without return type

Maxim Fomin maxim at maxim-fomin.ru
Sun Mar 17 21:51:07 PDT 2013


On Sunday, 17 March 2013 at 22:11:27 UTC, Andrej Mitrovic wrote:
> On 3/17/13, Artur Skawina <art.08.09 at gmail.com> wrote:
>> That's because "auto ref" is a hack.
>> IOW "auto ref" != "auto" + "ref", just as "static if" != 
>> "static" + "if".
>
> Both auto and auto ref are documented features,  type inference 
> with
> any storage class is not a documented feature.

Actually it is, and there is example with "static i = 3" but 
functions are not mentioned explicitly.

http://dlang.org/declaration.html , "Implicit Type Inference"


More information about the Digitalmars-d mailing list