Accesing metadata fields on enums on @:build

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Accesing metadata fields on enums on @:build

Nemea Lion
Hi

Just a question,
Can/how do I access metadata fields on enums when using @:build?
If I start from Context.getLocalClass(), I get an empty reference,
it only works when building classes (well, I suppouse thats why its called getLocalCLASS).
I depend on some metadata for the building of the enum constructors.

Carlos Delgado

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: Accesing metadata fields on enums on @:build

Nicolas Cannasse
Le 28/07/2011 00:22, Nemea Lion a écrit :
> Hi
>
> Just a question,
> Can/how do I access metadata fields on enums when using @:build?
> If I start from Context.getLocalClass(), I get an empty reference,
> it only works when building classes (well, I suppouse thats why its
> called getLocalCLASS).
> I depend on some metadata for the building of the enum constructors.

Add this as a request on haXe issues please.

Best,
Nicolas

--
haXe - an open source web programming language
http://haxe.org