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

User defined macros _str don't have interpolation anymore ? #2504

Closed
diegozea opened this issue Mar 7, 2013 · 1 comment
Closed

User defined macros _str don't have interpolation anymore ? #2504

diegozea opened this issue Mar 7, 2013 · 1 comment

Comments

@diegozea
Copy link
Contributor

diegozea commented Mar 7, 2013

julia> import Base.byteliteral

julia> macro n_str(s...); ex = byteliteral(s...); :(($ex).data); end # Exact copy of @b_str

julia> n"AC"
2-element Uint8 Array:
 0x41
 0x43

julia> n"AC$a"
4-element Uint8 Array:
 0x41
 0x43
 0x24
 0x61

julia> a
"ACAC"

julia> b"AC$a"
6-element Uint8 Array:
 0x41
 0x43
 0x41
 0x43
 0x41
 0x43

@nolta
Copy link
Member

nolta commented Mar 7, 2013

Nope, see the discussion in #2301.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants