riot.hx wrapper riotjs

58 views
Skip to first unread message

francesco agati

unread,
May 17, 2015, 12:32:55 PM5/17/15
to haxe...@googlegroups.com
Hi guys,
I have just released an alpha wrapper for Riot.js at this link
https://github.com/francescoagati/riot.hx

I need an help for reading fields and annotations of a superclass during build macro.
How i can find it?

Thanks
Francesco

Juraj Kirchheim

unread,
May 17, 2015, 2:57:46 PM5/17/15
to haxe...@googlegroups.com
Essentially you work your way from the current class like so: `haxe.macro.Context.getLocalClass().get().superClass.t.get().fields`. Bear in mind that `superClass` can be `null` of course.

Also: composition over inheritance ;)

Best,
Juraj

Francesco

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

francesco agati

unread,
May 17, 2015, 4:07:15 PM5/17/15
to haxe...@googlegroups.com
Thanks compositions is better but i need to share same events on different components
Reply all
Reply to author
Forward
0 new messages