Dictionary of Templated Functions

Ali Çehreli acehreli at yahoo.com
Sat Sep 10 22:48:02 UTC 2022


On 9/10/22 15:35, jwatson-CO-edu wrote:

 > So, my solution
 > will be to construct a catch-all struct `Payload` and have that be my
 > argument type from which various functions can draw the data of their
 > choice.

Two Phobos features may be helpful there:

   https://dlang.org/phobos/std_sumtype.html

   https://dlang.org/phobos/std_variant.html

Ali



More information about the Digitalmars-d-learn mailing list