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

Macro expansion not applied in strings within l/iterate_macro #306

Closed
mkruselj opened this issue Jan 25, 2023 · 0 comments · Fixed by #359
Closed

Macro expansion not applied in strings within l/iterate_macro #306

mkruselj opened this issue Jan 25, 2023 · 0 comments · Fixed by #359
Labels

Comments

@mkruselj
Copy link
Collaborator

mkruselj commented Jan 25, 2023

on init
    literate_macro(message(#l# & "ordinal is #n#")) on "Foo", "Fee", "Faa"
end on

will result in:

on init
    message("Foo" & "ordinal is #n#")
    message("Fee" & "ordinal is #n#")
    message("Faa" & "ordinal is #n#")
end on

Additionally, if we put #l# inside the string, it won't compile at all, will throw a syntax error (whereas this works fine with normal macros):

on init
    literate_macro(message("#l# ordinal is #n#")) on Foo, Fee, Faa
end on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant