[armedbear-ticket] [armedbear] #93: reader does not respect (values) from reader macros

armedbear armedbear-devel at common-lisp.net
Mon Apr 5 22:01:59 UTC 2010


#93: reader does not respect (values) from reader macros
-----------------------+----------------------------------------------------
 Reporter:  janderson  |       Owner:  somebody
     Type:  defect     |      Status:  new     
 Priority:  major      |   Milestone:          
Component:  other      |     Version:  0.19    
 Keywords:             |  
-----------------------+----------------------------------------------------
 the hyperspec includes an example which illustrates the effect of (values)
 for a reader macro(1)

 as of 0.19.1 the reader treats (values) as nil.

 [1] CL-USER(3): (set-macro-character #\! #'(lambda (stream char) (declare
 (ignore char)) (read stream) (values)))
 T
 [1] CL-USER(4): (list 1 !qwer 2)
 (1 NIL 2)
 [1] CL-USER(5): (lisp-implementation-version)
 "0.19.1"
 [1] CL-USER(6): asdf at ip-10-251-122-82:/development/source/metadata/net
 /common-lisp/bordeaux-threads$ ccl
 Welcome to Clozure Common Lisp Version 1.4-r13119  (LinuxX8632)!
 ? (set-macro-character #\! #'(lambda (stream char) (declare (ignore char))
 (read stream) (values)))
 T
 ? (list 1 !qwer 2)
 (1 2)
 ?

 ---
 (1) http://www.lispworks.com/documentation/HyperSpec/Body/f_set_ma.htm

-- 
Ticket URL: <http://trac.common-lisp.net/armedbear/ticket/93>
armedbear <http://common-lisp.net/project/armedbear>
armedbear


More information about the armedbear-ticket mailing list