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 expanding in top-level do should be eval-ed like user code #421

Closed
borkdude opened this issue Sep 21, 2020 · 0 comments
Closed

Macro expanding in top-level do should be eval-ed like user code #421

borkdude opened this issue Sep 21, 2020 · 0 comments

Comments

@borkdude
Copy link
Collaborator

user=> (defmacro dude [] `(do (ns ~'foo) (prn *ns*) (ns ~'user)))
#'user/dude
user=> (dude)
#object[sci.impl.vars.SciNamespace 0x3b233ecd "user"]
nil

In Clojure the ns switch is visible as foo.

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

1 participant