What is the closest I can get to the following?
-- foo.scm --
(namespace ("foo#)) (define x 20)
-- main.scm --
(load "foo") (alias "foo#" "bar#") ; how do I do this?
(pp bar#x); I want it to say 20
Thanks!
Afficher les réponses par date
This has a different syntax than your example, but is semantically equivalent:
(define-macro (bar identifier) (string->symbol (string-append "foo#" (symbol->string identifier))))
;; Example use:
(pp (bar x))
Best wishes,
-Ben