template recursion
Alex
sascha.orlov at gmail.com
Tue Jun 26 10:19:47 UTC 2018
On Tuesday, 26 June 2018 at 10:01:06 UTC, ag0aep6g wrote:
> On line 23, you're apparently trying to call std.range.put
> (which would in turn call tarr[t].put). But being in a method
> that is itself called "put", that line is instead interpreted
> as a recursive call (which fails). To refer to std.range.put,
> you have to prepend a dot (the "module scope operator"):
>
> .put(tarr[t], t); // line 23
>
> https://dlang.org/spec/module.html#module_scope_operators
Ah... that's cool :)
Thanks a lot!
More information about the Digitalmars-d-learn
mailing list