auto

Derek Parnell derek at psych.ward
Wed Jun 20 05:35:34 PDT 2007


On Wed, 20 Jun 2007 14:20:43 +0200, Hoenir wrote:

> I still can't get the purpose of "auto".
> I know it makes it possible to e.g. write "auto y = 4u;" but why not 
> just "uint y = 4;"?

   auto y = someFunc();   // What type is it now?


-- 
Derek Parnell
Melbourne, Australia
"Justice for David Hicks!"
skype: derek.j.parnell


More information about the Digitalmars-d-learn mailing list