I dun a DIP, possibly the best DIP ever
Simen Kjærås
simen.kjaras at gmail.com
Fri Apr 24 13:50:24 UTC 2020
On Friday, 24 April 2020 at 12:22:51 UTC, Steven Schveighoffer
wrote:
> On 4/24/20 1:16 AM, Simen Kjærås wrote:
>> On Friday, 24 April 2020 at 00:16:52 UTC, Manu wrote:
>>> On a slightly unrelated note; there's a really interesting
>>> idea up-thread
>>> about making nested `...` not be expanded by the outer `...`
>>> For instance:
>>>
>>> template T(A, B...) { ... }
>>> T!(Tup1, Tup2...)...
>>
>> I'm wondering if perhaps that's the wrong way around -
>> AliasSeq already does that:
>>
>> T!(Tup1, AliasSeq!Tup2)... // Should only expand Tup1
>
> No, this means:
>
> T!(Tup1[0], AliasSeq!(Tup2[0])), T!(Tup1[1],
> AliasSeq!(Tup2[1]), ...
Yup, I noticed a little while ago. In my defense I had a migraine
when I wrote that. :p
--
Simen
More information about the Digitalmars-d
mailing list