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.ht
On Saturday, 10 September 2022 at 22:13:01 UTC, frame wrote:
On Saturday, 10 September 2022 at 00:24:11 UTC, jwatson-CO-edu
wrote:
Hello,
I'm trying to create a dictionary of templated function
pointers. The functions should return `bool` and take a
differently-typed dynamics arrays `T[]` as
On Saturday, 10 September 2022 at 00:24:11 UTC, jwatson-CO-edu
wrote:
Hello,
I'm trying to create a dictionary of templated function
pointers. The functions should return `bool` and take a
differently-typed dynamics arrays `T[]` as an argument.
This won't work as you might expect. Your conta
Hello,
I'm trying to create a dictionary of templated function pointers.
The functions should return `bool` and take a differently-typed
dynamics arrays `T[]` as an argument. Based on my understanding
of the docs, I've made two failed attempts:
**Attempt 1**:
https://github.com/PhilippeSig