https://issues.dlang.org/show_bug.cgi?id=22768
Stanislav Blinov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #1 from Stanislav Blinov <[email protected]> --- The spec does not mandate such behavior: https://dlang.org/spec/function.html#lazy-params The compiler *could* cache results if resulting delegate was strongly pure (https://dlang.org/spec/function.html#pure-functions #17), but even that is left up to the implementation, and `lazy` fails to infer attributes anyway. --
