Merging two named Tuples
Edwin van Leeuwen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Oct 29 14:41:52 PDT 2015
On Thursday, 29 October 2015 at 19:42:10 UTC, anonymous wrote:
> `tup` is an ordinary (run time, dynamic) string to the type
> system. You can't mixin those. You can only mixin static values
> (enum, static immutable, CTFE results).
>
> The code you're generating doesn't depend on `base` and
> `other`. All it needs are `T` and `U`. So, you can generate the
> code from the types and mix it into a function that takes `T
> base, U other`:
Thanks :) That worked perfectly.
More information about the Digitalmars-d-learn
mailing list