AlexCharlton / cl-glfw3

Common Lisp bindings to GLFW version 3.x
BSD 2-Clause "Simplified" License
89 stars 32 forks source link

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

Open HectareaGalbis opened 2 years ago

HectareaGalbis commented 2 years ago

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.