find-class not using environment

Bug #1669030 reported by Philipp Marek on 2017-03-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Undecided
Unassigned

Bug Description

http://www.lispworks.com/documentation/HyperSpec/Body/f_find_c.htm has an environment arg, but SBCL doesn't seem to use it.

For example, I believe that this code in a file should be able to find and print the class during a "compile-file" operation:

  (defmacro ggg (name &environment env)
      (format *trace-output* "cls ~s ~s~&"
              name
              (find-class name nil env))
      nil)

  (defclass foo6 ()
    ())

  (ggg foo6)

For SBCL the output I get is NIL; eg. ECL correctly gives me "#<The STANDARD-CLASS COMMON-LISP-USER::FOO6>".

Thanks a lot!

Stas Boukarev (stassats) wrote :

But SBCL has no compilation environment.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers