[Openmcl-devel] OpenMCL 1.0-rc1

bryan o'connor bryan-lisp at lunch.org
Sun Sep 25 15:12:58 PDT 2005


>        (make-instance #+sbcl #-sb-thread 'bc-sbcl
>               #+sbcl #+sb-thread 'bc-sbcl
>               #-sbcl 'bc
>               :slot1 "test"))

the way reader conditionals work has changed since 0.14.3
to properly handle "nested" conditionals like above.
the "inside" conditional now gets properly evaluated.

if sb-thread is not in *features*, your above form becomes:

   (make-instance #+sbcl 'bc-sbcl
                  #+sbcl
                  #-sbcl 'bc
                  :slot1 "test")

then with sbcl not in *features* becomes:

   (make-instance :slot1 "test")


here's a version that should work:

   (make-instance #+sbcl #+sb-thread 'bc-sbcl
                         #-sb-thread 'bc-sbcl   ; same as above?
                  #-sbcl 'bc
                  :slot1 "test")

this is either covered in 2.4.8.17 or the sections to which
it refers.

     ...bryan




More information about the Openmcl-devel mailing list