What is the correct use of auto?
Robert Fraser
fraserofthenight at gmail.com
Sun Apr 13 15:27:07 PDT 2008
Georg Wrede wrote:
> To sum it up, "auto" should /never/ appear in any example code (either
> here nor in DDJ), all examples that are not /directly/ associated with
> "auto" should simply not contain it.
I wouldn't agree with that. It's just that the use of auto shouldn't
hide anything from the user. If you say
auto list = new ArraySeq!(GodzillaAttackLocationDefenseStrategy)();
its type is quite clear.
More information about the Digitalmars-d
mailing list