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

WITH-CONTEXT macro not changing the current context. #38

Open
HectareaGalbis opened this issue Dec 23, 2021 · 0 comments
Open

WITH-CONTEXT macro not changing the current context. #38

HectareaGalbis opened this issue Dec 23, 2021 · 0 comments

Comments

@HectareaGalbis
Copy link

HectareaGalbis commented Dec 23, 2021

Here is the definition of WITH-CONTEXT:

(defmacro with-context (window &body body)
  `(let* ((*window* ,window))
     ,@body))

The special variable *window* is changed but not the current context of the window, and the name of the macro, imo, suggest that the current context of the window is also changed. I think this can be confusing.

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