Lisp HUG Maillist Archive

INTERN (4.4.6 vs. 5.0.2)

  CL-USER 1 > (lisp-implementation-type)
  "LispWorks"

  CL-USER 2 > (lisp-implementation-version)
  "4.4.6"

  CL-USER 3 > (intern nil)

  Error: In a call to INTERN: NIL is not of type STRING.
    1 (abort) Return to level 0.
    2 Return to top-level loop.
    3 Return from multiprocessing.


  CL-USER 1 > (lisp-implementation-type)
  "LispWorks"

  CL-USER 2 > (lisp-implementation-version)
  "5.0.2"

  CL-USER 3 > (intern nil)
  NIL
  :INHERITED

The first example is on Linux, the second one on Windows, if that
matters.

I think the new behaviour of LW 5 is wrong - the Hyperspec says that
the first argument to INTERN must be a string, not a string
designator.

Cheers,
Edi.


Re: INTERN (4.4.6 vs. 5.0.2)

Hi Edi,

it does say in Hyperspec that the first argument has to be a string but I  
think it would be strange if when interning or looking up a symbol you  
weren't able to use a symbol:)

Though I agree that it arises the problem of compartibility once again.


On Sat, 03 Nov 2007 23:07:54 -0000, Edi Weitz <edi@agharta.de> wrote:

>
>   CL-USER 1 > (lisp-implementation-type)
>   "LispWorks"
>
>   CL-USER 2 > (lisp-implementation-version)
>   "4.4.6"
>
>   CL-USER 3 > (intern nil)
>
>   Error: In a call to INTERN: NIL is not of type STRING.
>     1 (abort) Return to level 0.
>     2 Return to top-level loop.
>     3 Return from multiprocessing.
>
>
>   CL-USER 1 > (lisp-implementation-type)
>   "LispWorks"
>
>   CL-USER 2 > (lisp-implementation-version)
>   "5.0.2"
>
>   CL-USER 3 > (intern nil)
>   NIL
>   :INHERITED
>
> The first example is on Linux, the second one on Windows, if that
> matters.
>
> I think the new behaviour of LW 5 is wrong - the Hyperspec says that
> the first argument to INTERN must be a string, not a string
> designator.
>
> Cheers,
> Edi.
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


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