[Issue 18560] find on infinite ranges is broken
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 6 12:23:43 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18560
--- Comment #2 from FeepingCreature <default_357-line at yahoo.de> ---
No, this is the actual problem!
struct Struct
{
enum Enum = 5;
}
bool fooEvaluated;
Struct foo() { fooEvaluated = true; return Struct(); }
assert(foo().Enum == 5);
assert(fooEvaluated == true);
Should this last assert pass? Right now it doesn't, because foo() is never
evaluated because Enum is enum. This means that in any and all, the find()
never runs.
--
More information about the Digitalmars-d-bugs
mailing list