4 ms·
Haxe has another example of this: http://haxe.org/manual/types-enum-instance.html http://haxe.org/manual/types-enum-instance.html Note that enums in Haxe are p
by jdonaldson 12y ago
Haxe has another example of this:
http://haxe.org/manual/types-enum-instance.html http://haxe.org/manual/types-enum-instance.html
Note that enums in Haxe are pure data types, and can't have member functions and/or values. However, since enums are public by nature, it's possible to achieve this easily with "using":
http://try.haxe.org/#87bF5 http://try.haxe.org/#87bF5