Specifying haxe API root class (ie conflict between Type and haxe.macro.Type)

47 views
Skip to first unread message

dlots

unread,
Jul 16, 2012, 6:07:04 AM7/16/12
to haxe...@googlegroups.com
Is there a way to specify that you are referring to the classes in the root of the API hierarchy? This occurs throughout SPOD macros for example, where haxe.macro.Type is forced to be called explicitly.

Nicolas Cannasse

unread,
Jul 16, 2012, 6:08:08 AM7/16/12
to haxe...@googlegroups.com
Le 16/07/2012 12:07, dlots a �crit :
> Is there a way to specify that you are referring to the classes in the
> root of the API hierarchy? This occurs throughout SPOD macros for
> example, where haxe.macro.Type is forced to be called explicitly.

Yes : std.Type

Best,
Nicolas


Zachary Dremann

unread,
Jul 17, 2012, 5:18:40 AM7/17/12
to haxe...@googlegroups.com
Alternatively, you can use a typedef BEFORE the import of haxe.macro.Type as, say StdType. i.e.
typedef StdType = Type;
import haxe.macro.Type;
Reply all
Reply to author
Forward
0 new messages