qtools icon indicating copy to clipboard operation
qtools copied to clipboard

DYNAMIC-EXTENT on a weird thing when in Qtools readtable

Open phoe opened this issue 5 years ago • 4 comments

Execute the following in the REPL:

(ql:quickload :qtools)
(named-readtables:in-readtable :qtools)
(asdf:load-system :esrap :force t)

Result on SBCL:

; file: /home/phoe/.roswell/lisp/quicklisp/dists/quicklisp/software/esrap-20190107-git/src/expressions.lisp
; in: DEFUN EXPRESSION-EQUAL-P
;     (DYNAMIC-EXTENT (CL+QT:FUNCTION ESRAP::REC))
; 
; caught ERROR:
;   DYNAMIC-EXTENT on a weird thing: (CL+QT:FUNCTION REC)

Is this something that should go to ASDF maintainers?

phoe avatar Mar 19 '19 20:03 phoe

Either the package or the readtable is poisoning the load operation, causing #' to be read as q+' function wrapper. I don't know if ASDF is or is not supposed prevent this.

Shinmera avatar Mar 19 '19 20:03 Shinmera

The package is CL-USER, I do not think it's that. I guess it's the readtable that is not set to the standard readtable by ASDF. I would expect that ASDF would reset the readtable to the standard one when it loads a system; otherwise, I can set an arbitrary readtable as the standard readtable (as it is with Qtools) and then break the build for any other systems (as it is with Qtools).

phoe avatar Mar 19 '19 20:03 phoe

I don't know what's going on in ASDF and I frankly don't care to find out.

Shinmera avatar Mar 19 '19 21:03 Shinmera

https://bugs.launchpad.net/asdf/+bug/1820910

phoe avatar Mar 19 '19 21:03 phoe