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 ?
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 ?