13 Jul
2009
13 Jul
'09
18:31
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
14 Jul
14 Jul
18:16
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
6186
Âge (en jours)
6187
Dernière activité (en jours)
1 commentaires
2 participants
participants (2)
-
Ben Weaver -
lowly coder