On Fri, Jan 28, 2011 at 7:52 AM, Pascal J. Bourguignon
> Mark Volkmann <r.mark.volkmann@...> writes:
>> Suppose I'm in a REPL and I want to import multiple symbols from some
>> package into the current package.
>> Is there a way to do that without repeating the name of the source package?
>> For example, this works, but repeats he source package name:
>> (import '(com.ociweb.math:double com.ociweb.math:square))
> Notice, this is a general CL question, you could have asked on
I should explain why I joined this list recently. I am reading the new
book "Land of Lisp" which mainly covers Common Lisp and CLISP in
particular. I imagine there will be several more like me that will
join this list soon as more people read that book. When you're new to
this, it isn't always clear whether something is specific to CLISP or
is applicable to all Common Lisp implementations.
> Not assuming that :com.ociweb.math uses :cl, and not knowing
> specifically the current package, this can be done also with:
> (defvar cl-user::*target-package* cl:*package*)
> (in-package :com.ociweb.math)
> (cl:import '(double square) cl-user::*target-package*)
> (cl:setf cl:*package* cl-user::*target-package*)
R. Mark Volkmann
Object Computing, Inc.