TL;DR: Below problem raised the question: Why is this not possible:
abstract AbstractInt(Int) implements MyInterface?
The exact problem which lead up to this: I couldn’t find any existing standard classes (under cpp target) implementing a sort of hash code functionality -
Maps don’t quite do the trick. So I decided to implement my own
Hashable interface and thought, in order to support the basic types, create an abstract
HashableInt which implements my interface. I quickly realized that that is not possible.
Now of course there’s other approaches to this solution, so at least I’m not stuck. I’d still like to know why this is not possible, it seems to me like this should be fine… but I’m also a complete noob to Haxe.
Thanks in advance!