Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nested feature testing: ERROR: ECASE expression failed for the object `NIL'. #475

Open
VitoVan opened this issue Apr 21, 2023 · 1 comment

Comments

@VitoVan
Copy link
Contributor

VitoVan commented Apr 21, 2023

CL-USER> #-jscl 
... (defun hello () 
...   #+types (format t "Has types~%") 
...   #-types (format t "No types~%"))
ERROR: ECASE expression failed for the object `NIL'.
CL-USER> 

Am I doing something wrong?

on SBCL nothing will happen:

This is SBCL 2.3.3, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* #-sbcl
(defun hello ()
  #+types (format t "Has types~%")
  #-types (format t "No types~%"))

This makes me not able to test features happily.

@VitoVan
Copy link
Contributor Author

VitoVan commented Apr 21, 2023

Found a workaround, don't nest, use uiop:featurep or just check *features* manually.

(uiop:featurep :darwin)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant