Since this needs additional support beyond ANSI to work properly, cl-package-aliases isn't really a portable library. The current version works on Allegro CL 6.2, CMUCL, LispWorks 4.3, OpenMCL 0.14 and SBCL 0.8.5.
After loading the library, you can either add aliases by hand or use the new :ALIAS option in DEFPACKAGE.
* (defpackage :foo (:use :cl) (:alias (:common-lisp :bar))) # <PACKAGE "FOO"> * (in-package :foo) # <PACKAGE "FOO"> * (bar:format t "Hello World~%") Hello World NIL
LicenseBSD without advertising clause.
- think about how to avoid the patching. This could be done with a reader hook and function wrappers (encapsulation?)
Topics: language extension