D's auto keyword

downs default_357-line at yahoo.de
Mon Jan 18 04:59:27 PST 2010


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

:)



More information about the Digitalmars-d mailing list