Re: cond-expand and import
Dan <[email protected]>
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
> > netcafe:~# sisc > > SISC (1.13.7) > > #;> (cond-expand (sisc (require-library 'x))) > > (x) > > #;> (cond-expand (sisc (import x))) > > #;> f > > #<procedure |@x::f|> > > require-library is a *function* that when > *evaluated* loads the > specified library. By contrast, import is a *macro* > that when *expanded* I see. And what if I tried to compile files that contained the examples, instead of typing them from the REPL? > require-extension does the above and gets it right, > e.g. > > (cond-expand (sisc (require-extension (srfi 1)))) > Ah yes, I forgot. So I should use (require-extension (lib x)) if I remember correctly. I stopped using require-extension after the "silent deprecation" of the old (require-ext (path name)) syntax which "broke" siscweb. The new (lib full/path/name) syntax isn't standardized in an authoritative document either, so I'm afraid it might change yet again. Thanks, Dan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com