waneck / testrepo

0 stars 0 forks source link

Issue 1852 - strings '$a' and "$a" doesn't differ for macros - haxe #1852

Open waneck opened 11 years ago

waneck commented 11 years ago

[Google Issue #1852 : http://code.google.com/haxe/issues/detail?id=1852] by System.g...@gmail.com, at 2013-05-24T21:51:37.000Z

trace(macro "$a"); // EConst(CString($a)) trace(macro '$$a'); // EConst(CString($a))

waneck commented 11 years ago

[comment from si...@haxe.org, published at 2013-05-24T21:56:55.000Z] That's expected, single-quote strings suffer from unstable economy and turn $$ into $. Another reason is string interpolation (http://haxe.org/manual/string_interpolation).

waneck commented 11 years ago

[comment from System.g...@gmail.com, published at 2013-05-24T21:58:57.000Z] I know about interpolation. I need know in macros string is simple or with interpolation

waneck commented 11 years ago

[comment from System.g...@gmail.com, published at 2013-05-24T22:01:01.000Z] For example: CString and CInterpolationString

waneck commented 11 years ago

[comment from si...@haxe.org, published at 2013-05-24T22:04:02.000Z] Well that's not exactly what you reported, but I see what you mean now. I suppose we can expose Lexer.is_fmt_string to macros.

waneck commented 11 years ago

[comment from System.g...@gmail.com, published at 2013-05-24T22:05:35.000Z] Thanks. I'm sorry for my incorrect explanation