On Thursday, 4 January 2018 at 01:40:21 UTC, Mark wrote:
What I'm trying to do here is to be able to call a function
based off of a key.
class tester {
private void delegate() [char] funcs;
this() {
funcs = ['a': &A, 'b': &B];
}
public void
What I'm trying to do here is to be able to call a function based
off of a key.
I'm not sure how to do this, I've been messing around a bit, but
the compiler doesn't like what I'm doing.
Im getting:
test.d(20): Error: cannot implicitly convert expression &this.A
of type void delegate() to vo