named arguments, string interpolation, please stop.
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri Jan 12 01:32:50 UTC 2024
On 12/01/2024 2:21 PM, H. S. Teoh wrote:
> Oops, BetterC does not support delegates. Guess we have to lose that
> subset of D users:
>
>
> |void registerCallback(void delegate() cb) @safe @nogc;|
What? -betterC supports delegates.
It does not support closure creation with GC however.
But you can create a delegate yourself just fine.
In fact if you make that scope, it'll create the closure just fine with
-betterC.
More information about the Digitalmars-d
mailing list