Syntax ideas for `ref` returning delegate and FP parameters

Kagamin spam at here.lot
Wed Apr 14 06:06:28 UTC 2021


On Saturday, 10 April 2021 at 21:25:07 UTC, MoonlightSentinel 
wrote:
> Maybe allow `ref` as a postfix?
>
> ```d
> void foo(int ref delegate() dg) {}
> ```
>
> Allthough that looks kinda weird.

An obvious solution.
It's composable too:
```d
void foo(int ref delegate() ref delegate() dg) {}
```


More information about the Digitalmars-d mailing list