BetterC Bug? Intended Behavior? Asking Here As Unsure
Kayomn
kayomn at kayomn.net
Mon Jul 6 22:02:37 UTC 2020
On Monday, 6 July 2020 at 21:09:57 UTC, kinke wrote:
> Similar case here; the 'varargs' end up in a GC-allocated
> array. I've recently changed `scope` slice params, so that
> array literal arguments are allocated on the caller's stack
> instead; so adding `scope` for these variadics *should*
> probably do the same:
>
> void tester(Test test, scope Test[] tests...);
This doesn't seem to be the case as the issue persists in the
same manner.
https://run.dlang.io/is/LcaKeu
More information about the Digitalmars-d-learn
mailing list