abcl icon indicating copy to clipboard operation
abcl copied to clipboard

defclass not working according the CL standard

Open curiouszerg opened this issue 1 year ago • 2 comments

Details here https://www.reddit.com/r/Common_Lisp/comments/1fpztx6/cannot_find_class_in_macro_why/ , the post is related with SBCL, but this is also failing in ABCL

curiouszerg avatar Sep 27 '24 18:09 curiouszerg

it does compile with abcl.

MY-PACKAGE(3): (my-macro my-class)
(#<STANDARD-CLASS MY-CLASS {3FD4865A}>)

arnav-meesho avatar Dec 27 '24 05:12 arnav-meesho

No it doesn't. You need to put the code into a file and evaluate:

(load (compile-file "file.lisp"))

curiouszerg avatar Dec 30 '24 01:12 curiouszerg