Completion server and Macro

52 views
Skip to first unread message

luca mezzalira

unread,
Jun 17, 2015, 9:28:32 AM6/17/15
to haxe...@googlegroups.com
Hi All

I was reading on the documentation about some potential side effects using macros with the completation server (http://haxe.org/manual/cr-completion-server.html#effect-on-macros).
Someone could clarify a little bit this point please?

thanks in advance

Luca

Simon Krajewski

unread,
Jun 17, 2015, 9:32:04 AM6/17/15
to haxe...@googlegroups.com
The main thing is that static variables in macro context retain their
value across compilation. This is not properly documented because we
actually thought about changing this behavior.

Simon

luca mezzalira

unread,
Jun 17, 2015, 10:39:27 AM6/17/15
to haxe...@googlegroups.com
Thanks for the clarification!

Nicolas Cannasse

unread,
Jun 17, 2015, 11:35:12 AM6/17/15
to haxe...@googlegroups.com
Another notable thing is that macros-in-macros will prevent the module
from being cached, although we are planning to fix this.

Best,
Nicolas

Reply all
Reply to author
Forward
0 new messages