Hello,
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@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.