Hash-Table-Based Multiple Arguments Replacement

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 11 04:17:27 PDT 2015


On Sunday, 11 October 2015 at 05:06:04 UTC, Nordlöw wrote:
> On Sunday, 11 October 2015 at 00:16:44 UTC, Meta wrote:
>> There was something like this proposed quite awhile ago (can't 
>> remember what it was, might've been extending unary/binaryFun 
>> to accept an AA), but it was rejected.
>
> With static foreach in a switch we can do better. I'll put 
> together a solution.

Here's a solution:

https://github.com/nordlow/justd/blob/f8519e8a1af68bc25cc00c6ef12d13efa791250c/comparison_ex.d


More information about the Digitalmars-d-learn mailing list