I can’t find enough info…
@:forward abstract TestMacroFrom(String){
@:from static public macro function fromStringExpr(str:haxe.macro.Expr):haxe.macro.Expr{
return macro "Nothing";
}
}
I would think that might work, but doesn’t. In any case, I’m not sure how to get the function to trigger in the first place.
Any one know what the limitations are?
regards,
Laurence
--
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.
It's early days, I think. post some issues, see what turns up.
It looks like when you pass an abstract, you get the expression for 'this' that would be passed to the abstract constructor.
my 2¢