If I have the following:
*PACKAGE* -> COMMON-LISP-USER
FOO is internal to the package BAR
and I do the following:
LISP>(READ)
BAR:FOO
How should READ react? Should it automagically export BAR::FOO, or should
it give me an error, telling me FOO is not external in BAR.
How should READ react if FOO didn't exist at all in BAR?
--
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++!
! Richard Levitte, System manager ! tel: int+46-8-790 64 23 !
! Royal Institute of Technology ! fax: int+46-8-791 76 54 !
! Department of Telecommunication Theory ! Internet: ·······@ttt.kth.se !
! S-100 44 Stockholm, Sweden ! !
!-----------------------------------------------------------------------------!
In article <·····················@CLYDE.ttt.kth.se> ·······@ttt.kth.se (Richard Levitte) writes:
>How should READ react? Should it automagically export BAR::FOO, or should
>it give me an error, telling me FOO is not external in BAR.
>How should READ react if FOO didn't exist at all in BAR?
See section 11.3, paragraph 3 of either edition of CLtL. In both cases, it
says that a correctable error will be signalled. Common options that are
supplied are to export the symbol or to act as if the user had typed
"BAR::FOO" and return the internal symbol.
BTW, I haven't been able to find the corresponding text in the dpANS. If
anyone has, could you send me mail? I'd like to make sure that it's
specified somewhere.
--
Barry Margolin
System Manager, Thinking Machines Corp.
······@think.com {uunet,harvard}!think!barmar