DMD 1.019 and 2.003 releases
Kirk McDonald
kirklin.mcdonald at gmail.com
Sun Jul 22 17:05:59 PDT 2007
Walter Bright wrote:
>
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.019.zip
>
> http://www.digitalmars.com/d/changelog.html
> http://ftp.digitalmars.com/dmd.2.003.zip
In the spec for the new ForeachRangeStatement, it says:
"If Foreach is foreach, then the variable is set to LwrExpression, then
incremented at the end of each iteration."
What does "incremented" mean, exactly? If have a class or struct that
defines opAddAssign, would it call foo.opAddAssign(1) (as ++foo does)?
Similarly, would the foreach_reverse form call foo.opSubAssign(1)?
--
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org
More information about the Digitalmars-d-announce
mailing list