October 11, 2003 implicit auto | ||||
---|---|---|---|---|
| ||||
Is there a reason why we cannot have the following two declarations mean the same thing: auto Search search = new Search(rootDir, pattern, flags); Search search(rootDir, pattern, flags); ? |
October 12, 2003 Re: implicit auto | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | I like the idea. The first way looks overly wordy, like C#. ;) Sean "Matthew Wilson" <matthew@stlsoft.org> wrote in message news:bm7l81$25v2$1@digitaldaemon.com... > Is there a reason why we cannot have the following two declarations mean the > same thing: > > auto Search search = new Search(rootDir, pattern, flags); > > Search search(rootDir, pattern, flags); > > ? |
Copyright © 1999-2021 by the D Language Foundation