Can opApply be made @nogc?
Alex
sascha.orlov at gmail.com
Fri Oct 19 23:48:20 UTC 2018
On Friday, 19 October 2018 at 23:32:44 UTC, solidstate1991 wrote:
> Since it's a bit difficult to make tree traversal through range
> (especially if someone wants to make it @nogc), I thought I'll
> make it through opApply override, however the delegate passed
> by it doesn't have the @nogc attribute, which would
> automatically make it incapable to be used in a @nogc context.
>
> I also don't know if it would work with structs instead of
> classes, since they're easier to handle in a @nogc situation.
https://forum.dlang.org/thread/erznqknpyxzxqivawnix@forum.dlang.org
More information about the Digitalmars-d-learn
mailing list