Time to start compiling with -dip25
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Jan 1 00:48:47 UTC 2019
On Mon, Dec 31, 2018 at 04:36:29PM -0800, H. S. Teoh via Digitalmars-d wrote:
[...]
> auto func1(R)(R range)
> {
> ...
> range.func2();
> ...
> }
>
> auto func2(R)(R range)
> {
> ...
> range.func1();
> ...
> }
>
> Unsurprisingly, the compiler was unable to infer @safe for these
> functions, since their mutual dependency understandably makes it hard
> for automatic inference to deduce @safe correctly.
[...]
Apparently there's already an issue for this:
https://issues.dlang.org/show_bug.cgi?id=16528
It's been 3 years since this was filed. :-(
T
--
"A man's wife has more power over him than the state has." -- Ralph Emerson
More information about the Digitalmars-d
mailing list