Hi,
I'm in the process of writing (yet another) "extension" to the Haxe standard library. I ran into a problem with static classes (eg. File). I can't extend them with static extensions (I don't remember what it's called in Haxe), because it's static.
This probably rules out the "ideal" API of someone writing "import haxe.io.File" and getting my extensions (if they have my haxelib). This is how Linq works in C#, as a comparative reference point.
My questions:
1) Is there some macro magic or something I can do to make this work the way I want?
2) How did other libraries (eg. thx.core) handle this?
Another plausible alternative is to tell my users to "switch from haxe.io.File to myawesomelib.io.File," but that requires redirecting all the calls to the standard lib. I recall reading that there is some macro magic for this.
What's the best way to do this?
--Ashiq