From the readme:
The function AUTOPROJECT.PKG:ALIAS provides a straightforward facility for renaming packages temporarily as if they were local to a system or package. Any nicknames except the standard package names can be chosen, as package name conflicts are handled by a 'shadowing' mechanism.
Example usage:
In packages.lisp:
In code.lisp:Code: Select all
(defpackage :my-package (:use :cl) (:export #:my-function)) (pkg:alias '((:com.really.long.package.util :util) (:com.another.package.foo :foo) (:com.a.third.package.bar :bar)))
Code: Select all
(defun my-function (x) (let ((q (util:prepare-for-xuul x))) (foo:handle-xuul (bar:make-xuul q)))) ;; Be nice to others, reset nicknames (pkg:alias)