How spand array for use with functions arguments like tuple?

Paul Backus snarwin at gmail.com
Mon Jul 20 21:58:54 UTC 2020


On Monday, 20 July 2020 at 17:59:06 UTC, Marcone wrote:
> On Sunday, 19 July 2020 at 23:05:45 UTC, Marcone wrote:
>> How spand array for use with functions arguments like tuple?
>
> expand*

If the array is a compile-time constant, you can use aliasSeqOf 
[1]. Otherwise, you can't.

[1] http://dpldocs.info/experimental-docs/std.meta.aliasSeqOf.html


More information about the Digitalmars-d-learn mailing list