[slime-devel] swank-sbcl patch: make swank-compile-string use compile-file

Luís Oliveira luismbo at gmail.com
Mon Jun 26 00:08:59 UTC 2006


The following patch changes SBCL's swank-backend:swank-compile-string to
create a temporary file and invoke compile-file on that similarly to
what other backends, e.g. OpenMCL and Allegro, do.

Everything seems to work fine but I haven't tested it
extensively. Hopefully, it's not a terrible idea either.

2006-06-26  Luís Oliveira <loliveira at common-lisp.net>

  * swank-sbcl.lisp (tmpnam, temp-file-name): New functions.
    (swank-compile-string): Create temporary file with the string
    and compile-file it instead of compiling an anonymous lambda,
    as before, in order to better handle eval-when forms.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: swank-compile-string.patch
Type: text/x-patch
Size: 2576 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/slime-devel/attachments/20060626/0ccb5211/attachment.bin>
-------------- next part --------------

Luís Oliveira
luismbo (@) gmail (.) com

More information about the slime-devel mailing list