RBTree delegates and types
Viktor
viktor.ivanov at gmail.com
Mon Mar 19 13:06:35 UTC 2018
On Monday, 19 March 2018 at 11:30:13 UTC, Steven Schveighoffer
wrote:
> Yes, you need a `this` pointer for it to work. However, we can
> do this by encapsulating the return type with an auto function:
>
> https://run.dlang.io/is/inSzaU
>
> Sorry I didn't get this right away. Interesting chicken-and-egg
> problem, but as usual, D delivers :)
>
> -Steve
That's beautiful! Thanks!
More information about the Digitalmars-d-learn
mailing list