April 19 [Issue 24513] `pure` can be used as `auto` | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24513 Dennis <dkorpel@live.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dkorpel@live.nl Hardware|x86_64 |All Resolution|--- |INVALID OS|Linux |All --- Comment #1 from Dennis <dkorpel@live.nl> --- This is defined behavior: https://dlang.org/spec/function.html#auto-functions > An auto function is declared without a return type. Auto functions can use any valid StorageClass, not just auto. -- |
April 19 [Issue 24513] `pure` can be used as `auto` | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24513 --- Comment #2 from basile-z <b2.temp@gmx.com> --- that's completly stupid. Nobody would accept that in phobos. Just imagine my friend, someone who makes a PR that is like ``` pure takeWhile(T)(auto ref T t); ``` any human being would open a review comment to say "why the heck dont you use auto" and then you have the complete ashole who comes and say > An auto function is declared without a return type. Auto functions can use any valid StorageClass, not just auto that's absurd. -- |
Copyright © 1999-2021 by the D Language Foundation