3 ms·
> USE means that all symbols from package A become accessible in package B. All exported symbols from package A become accessible in package B. Also, symbols
by kazinator 5y ago
> USE means that all symbols from package A become accessible in package B.
All exported symbols from package A become accessible in package B.
Also, symbols that package A itself uses from another package are not visible by using package A.
You can create an intermediate package to isolate yourself:
(defpackage foo-2019
(:use foo)
(:export this that other thing))
Now you can ":use foo-2019" and get only those four symbols from foo. The :export actually imports those symbols into foo-2019, and then marks them for export. The :use foo makes all of foo's exported symbols symbols visible in foo-2019, and this allows the :export clause to refer to them.
- phoe-krk 5y agoRight, sorry - should have written, "all symbols exported from package A become accessilble in package B".