Using functions as map keys in Haxe

Viewed 386

I want to use functions as keys in a Map like this:

var timers : Map<Void->Void, snow.api.Timer>;

But Haxe won't compile:

Abstract Map has no @:to function that accepts IMap<Void -> Void, snow.api.Timer>

Is there a way to do this ?

2 Answers
Related