You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2023. It is now read-only.
(ns foo.bar)
;; sets the *ns* symbol in a new environment (let);; subsequent calls are evaluated in this environment;; this is done by the repl from the c side. see;; https://github.com/actonDev/s7-imgui/blob/b59927d2c875ff713aeddc8476973e8329e6f802/src/aod/s7/repl.cpp#L39
(ns-require foo.bar2)
(ns-require foo.bar3 :as bar3)
;; fully qualified namespace for calling
(foo.bar2/hi)
;; call with alias
(bar3/hi)
;; shows the current namespace
*ns*
;; the following are equivalent;; --- BEGIN equivalent
(with-ns foo.bar2
(hi))
;; *nss* mnemonic: plurar of ns. NameSpaceS
(with-let (*nss* 'foo.bar2)
(hi))
;; this changes the *ns*
(ns foo.bar2)
(hi)
;; ---- END equivalent;; WARNING;; now foo.bar2/hi and bar3/hi are NOT available;; to make them available we have to switch back:
(ns foo.bar)