[Issue 11305] Operations with array length cannot be used as a condition
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 30 07:59:12 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=11305
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b2.temp at gmx.com
--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
This is because the preincrement expression is lowered.
++arr.length
is rewritten
arr.length = arr.length + 1LU
which is not allowed as IfCondition, to prevent the "=" vs "==" error.
--
More information about the Digitalmars-d-bugs
mailing list