March 29, 2014 Re: why foreach() don't use 'auto'? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matej Nanut | > If I understand foreach correctly, it uses either opApply() or the
> range static interface to do its job, and with a range interface
> "auto" does actually work?
parser doesn't accept 'auto' in foreach(). i made a patch for it, but not sure if it will be accepted, as there is no good tests and no language spec fix.
|
Copyright © 1999-2021 by the D Language Foundation