D's auto keyword

Nick Sabalausky a at a.a
Mon Jan 18 11:27:46 PST 2010


"downs" <default_357-line at yahoo.de> wrote in message 
news:hj1m0r$1k3l$1 at digitalmars.com...
> Justin Johansson wrote:
>> Happy New Year 2010 Everybody.
>>
>> Having resumed C++ nationality for the last few months, I kind of miss 
>> D's auto keyword.
>>
>
> If you're on gcc or a compiler that allows the typeof extension:
>
> #define DECL(A, B) typeof(B) A = B
>
> :)

Heh, I've done something similar in generic D code :) 





More information about the Digitalmars-d mailing list