[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OK, so I have a package reference in my init file...
... but the world I load might not have that package defined (either
yet, or will never at all). How can I put a reference to the package in
my init, but with a test so I dont crash on undefined package for the
worlds where that aint loaded. (Using package bind does not help but I'm
not sure why that crashes too, even though I no longer have a form like
Am I thinking about this correctly? Thanks.
As often happens here, we seem to have only caught the tail of your
Is this what you are trying to do:
(defun APPLY-IF-PACKAGE (package-name function &rest args)
(when (find-package package-name)
(apply (intern (string-upcase function) package-name)
#|| (apply-in-package 'cl-user 'format nil "~:(~A~)" 'test) ||#