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
because xx is correctly defined as a local symbol in library (aa bb).
But this won't work:
(define-library (a b)
(import stklos)
(export y)
(begin
(define-syntax x
(syntax-rules ()
((_) -1)))
(define-syntax y
(syntax-rules ()
((y) (print (x)))))))
(import (a b))
(y)
**** Error:
%execute: symbol 'x' unbound in module 'stklos'
because x seems to not be available when the macro y is used from outside library (a b)...
This forces us to export all macros that a library will use...
The text was updated successfully, but these errors were encountered:
Hi @egallesio !
This works:
because
xx
is correctly defined as a local symbol in library(aa bb)
.But this won't work:
because
x
seems to not be available when the macroy
is used from outside library(a b)
...This forces us to export all macros that a library will use...
The text was updated successfully, but these errors were encountered: