Re: [Readable-discuss] :depends-on "readable" not working
Readable Lisp/S-expressions with infix, functions, and indentation
Brought to you by:
dwheeler
From: David A. W. <dwh...@dw...> - 2014-12-07 18:37:46
|
On Sat, 06 Dec 2014 12:17:31 -0800, Alexander Dunn <dun...@ic...> wrote: > Hi readable, ... > If I execute (readable:enable-sweet) in the REPL before I execute (ql:quickload “help"), it compiles just fine. But, I don’t understand why the same doesn’t work when I put (readable:enable-sweet) inside my help.lisp. Sorry about the bug. I just posted to the "devel" branch an updated version of the "readable" library that fixes the bug. This is a pretty important problem, so I plan to post an update to the package tonight on the master branch. If anyone objects, please let me know asap. The change is pretty straightforward; here's a quick summary. This version turns the enable-* functions into macros so that they can invoke "eval-when". During compilation the macros can only call functions that are *already* compiled, so the enabling macros have been moved into a separate file (so we can easily ensure that the macros only call already-compiled functions). It'll take a little time before QuickLisp picks up the updated master branch version. As a temporary workaround, I suggest replacing any call to (readable:enable-sweet) with: (eval-when (:compile-toplevel :load-toplevel :execute) (readable:enable-sweet)) Once QuickLisp picks up the update, the problem should disappear. --- David A. Wheeler |