Lisp HUG Maillist Archive

Unable to skip importing symbols

Greetings lispers,

When I'm manually importing symbols into a package, I often encounter
a name conflict. Usually, I continue by uninterning the conflicting
symbol and continuing with the import. On occasion, I'm not sure if
that is acceptable, so I want to skip importing the symbols. The
problem is, Lispworks never skips the symbols. I thought it was
because I supplied a quoted list, but that was not the issue.

The following illustrates the issue. When I'm working on unit tests, I
don't import symbols because I like to see explicitly in the code
whether the test is for an internal or external function. If I run
into an issue developing the unit tests, I'll manually import some
limited symbols for convenience.

MATERIAL-UNIT-TEST 103 > (import '(material:e1 material:e2 material:e3
                                   material:g23 material:g31 material:g12
                                   material:v23 material:v13 material:v12
                                   material:stiffness material:compliance))

Error: Importing these symbols into the MATERIAL-UNIT-TEST package
causes a name conflict: COMPLIANCE STIFFNESS.
  1 (continue) Unintern these symbols and try again
  2 Skip importing these symbols.
  3 (abort) Return to level 0.
  4 Return to top loop level 0.

Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

MATERIAL-UNIT-TEST 104 : 1 > :c 2

Error: Importing these symbols into the MATERIAL-UNIT-TEST package
causes a name conflict: COMPLIANCE STIFFNESS.
  1 (continue) Unintern these symbols and try again
  2 Skip importing these symbols.
  3 (abort) Return to level 0.
  4 Return to top loop level 0.
Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

MATERIAL-UNIT-TEST 105 : 1 > :c 2

Thank you,

Tom H.
----------------------------------------------------------------
Thomas M. Hermann
Odonata Research LLC
http://www.odonata-research.com/
http://www.linkedin.com/in/thomasmhermann


Re: Unable to skip importing symbols

Unable to parse email body. Email id is 11284

Updated at: 2020-12-10 08:37 UTC