Hi Greg,
(in-package #:common-lisp-user)(defpackage #:standard-library (:use #:common-lisp #:sb-ext #:sb-impl #:sb-thread #:cl-ppcre #:split-sequence #:net.html.parser #:puri #:trivial-http) (:documentation "Standard Lisp Library"))Now if I write code that uses this standard-library package I should have access to all of these libraries right? Or do I need to do something else? Like an export statement in the defpackage maybe??
The symbols in the used packages are available in the standard- library package but not in any packages that use standard library. If you want the symbols that are from the used packages to be directly usable by packages that use standard library (sorry about this sentence, by the way... sigh), then you need to export them. This sounds like a horrible maintenance nightmare but it's not because you can define:
(defun export-exported-symbols (from-package to-package)"Make the exported symbols in from-package be also exported from to-package."
(use-package from-package to-package)
(do-external-symbols (sym (find-package from-package))
(export sym to-package)))
and do things like:
(export-exported-symbols 'cl-ppcre 'standard-library)
In fact, you could go this one better by iterating over the used
packages...
HTH, -- Gary Warren King metabang.com http://www.metabang.com/
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Gardeners mailing list [email protected] http://www.lispniks.com/mailman/listinfo/gardeners
