Lisp HUG Maillist Archive

Intern Bug?

CLHS says: 

intern string &optional package => symbol, status
Arguments and Values:
string---a string.


Win32 - (intern 'foo) raises an error.
MacOS - (intern 'foo) ;=>  Foo, :Internal


Bug or feature?


=====================
Joshua Taylor
tayloj@rpi.edu


Re: Intern Bug?

Joshua Taylor <joshuaaaron@gmail.com> writes:

> Win32 - (intern 'foo) raises an error.
> MacOS - (intern 'foo) ;=>  Foo, :Internal
>
>
> Bug or feature?

I'd be inclined to call it a feature, though I once wrote a lot of
incompatible code because I used a lisp that allowed symbols as
parameters, I falsly assumed that the standard said the parameter
should be a _string_designator_, not a string (which would, imho, have
been a better choice).
-- 
  (espen)


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