From: budden
Subject: what is 'cl-user:: ?
Date: 
Message-ID: <149286e6-b0f9-4dd5-834e-f0ce6dc773da@y34g2000prb.googlegroups.com>
Hi!
> 'cl-user::
behaves differently. Some lisps return
cl-user::||
some err.
Which is correct behaviour?

From: Pascal J. Bourguignon
Subject: Re: what is 'cl-user:: ?
Date: 
Message-ID: <87ocukbhzx.fsf@galatea.local>
budden <···········@mail.ru> writes:

> Hi!
>> 'cl-user::
> behaves differently. Some lisps return
> cl-user::||
> some err.
> Which is correct behaviour?

The correct behavior is to avoid reading cl-user::


cl-user:: is not amongst the valid patterns for a token:
http://www.lispworks.com/documentation/HyperSpec/Body/02_ce.htm

-- 
__Pascal Bourguignon__
From: budden
Subject: Re: what is 'cl-user:: ?
Date: 
Message-ID: <633ba5b5-e8a2-4bc7-8a06-a127d902d8e2@r31g2000prh.googlegroups.com>
Thanks!
In a practice:

lispworks, clisp, ccl
(read-from-string "cl-user::")
returns cl-user::||

sbcl and allegro report a error.
From: Raffael Cavallaro
Subject: Re: what is 'cl-user:: ?
Date: 
Message-ID: <889ffd90-4b97-4610-9be3-499c09344b72@s1g2000prd.googlegroups.com>
On Apr 25, 4:38 pm, budden <···········@mail.ru> wrote:
> Thanks!
> In a practice:
>
> lispworks, clisp, ccl
> (read-from-string "cl-user::")
> returns cl-user::||
>
> sbcl and allegro report a error.

this must have been patched recently in ccl as it now returns:
> Error: Reader error: Illegal symbol syntax.
From: Rob Warnock
Subject: Re: what is 'cl-user:: ?
Date: 
Message-ID: <u_SdnXfM6MhbSW7UnZ2dnUVZ_o2dnZ2d@speakeasy.net>
budden  <···········@mail.ru> wrote:
+---------------
| In a practice:
| 
| lispworks, clisp, ccl
| (read-from-string "cl-user::")
| returns cl-user::||
| 
| sbcl and allegro report a error.
+---------------

As others have noted, bare CL-USER:: is an illegal token. However,
CL-USER::|| *is* a legal token, and thus the following should work
everywhere:

    > (read-from-string "cl-user::||")

    ||
    11
    > (eq * (intern "" "CL-USER"))

    T
    > (symbol-name **)

    ""
    > (length *)

    0
    > 


-Rob

-----
Rob Warnock			<····@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607