Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
issuesbot opened this issue May 28, 2013 · 5 comments
Closed

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

issuesbot opened this issue May 28, 2013 · 5 comments
Labels
platform-macro Everything related to Haxe macros
Milestone

Comments

@issuesbot
Copy link

[Google Issue #1852 : https://code.google.com/p/haxe/issues/detail?id=1852]
by [email protected], at 24/05/2013, 21:51:37

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

@issuesbot
Copy link
Author

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

@issuesbot
Copy link
Author

[comment from [email protected], published at 24/05/2013, 21:58:57]
I know about interpolation. I need know in macros string is simple or with interpolation

@issuesbot
Copy link
Author

[comment from [email protected], published at 24/05/2013, 22:01:01]
For example: CString and CInterpolationString

@issuesbot
Copy link
Author

[comment from [email protected], published at 24/05/2013, 22:04:02]
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.

@issuesbot
Copy link
Author

[comment from [email protected], published at 24/05/2013, 22:05:35]
Thanks. I'm sorry for my incorrect explanation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-macro Everything related to Haxe macros
Projects
None yet
Development

No branches or pull requests

1 participant