Hxcpp – state of the union enum.
Here are the slides from my wwx2015 talk.
You can compile them yourself with:
haxelib install nme haxelib install gm2d haxelib install acadnme haxelib run nme demo gm2d:11 cppia
On linux, you may want to compile for neko or cpp, instead of cppia.