I dun a DIP, possibly the best DIP ever
Stefan Koch
uplink.coder at googlemail.com
Thu Apr 23 20:20:07 UTC 2020
On Thursday, 23 April 2020 at 20:08:51 UTC, Stefan Koch wrote:
>
> k tuples with n elements can only expand to 1 tuple with k*n
> elements.
> They can't get more.
Acutely let me be more specific.
given TTup = T!(int, long, double, float)
the expression cast(TTup)0... yields
tuple(0, 0L, 0.0, 0.0f)
given VTup = T!(1, 2, 3, 4)
you can write the expression cast(TTup)VTup...
which yields tuple(1, 2L, 3.0, 4.0f)
should the length's of the tuple in and subexpression using
multiple tuples differ, that's an error.
More information about the Digitalmars-d
mailing list