auto

Ary Manzana ary at esperanto.org.ar
Wed Jun 20 16:37:44 PDT 2007


Derek Parnell escribió:
> 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?
> 
> 

// What can you do with y now, if you don't know the type?


More information about the Digitalmars-d-learn mailing list