For period of time I have believed any Haxe code but macro are expression. Unfortunately I found Enum nowhere in the related pages, there must be a trick since enums are a key feature of Haxe.
So how do you match a simple enum in an expression switch ?
Juraj Kirchheim
unread,
Feb 27, 2015, 3:39:34 AM2/27/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Enum constructors are basically just global functions (and read only variables) and are not represented any different. If this is unclear, look at the output of `trace(macro Some("value"))`.