Destructured Tuple Assignment

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 15 03:23:23 PDT 2015


I recall having seen an example of using some D magic (via mixin 
perhaps?) to realize tuple destructuring in assignments like

     magic(first, _, second) = expression.findSplit(separator);

somewhere. But I can't seem to find it right now.

References anyone?

BTW :I'm aware of Kenjis PR, which I am very much longing for ;)


More information about the Digitalmars-d-learn mailing list