Luke Gorrie luke@synap.se writes:
Dirk Gerrits dirk@dirkgerrits.com writes:
(eval-when (:compile-toplevel :load-toplevel :execute) (setq *read-default-float-format* 'long-float))
[...]
Anyone? This is really annoying, as it makes C-M-x, C-c C-k and C-x C-e completely unusable for this project. (Well unless there just happens to be no floating point literal in the evaluated code.)
This is probably specific to the Lisp implementation. Which are you using?
If you're using ACL then you should probably use excl:setq-default instead of setq. Otherwise new threads will use the default instead of what you want.
See http://www.franz.com/support/documentation/6.2/doc/pages/operators/top-level...
Sounds plausible. As I said in my original post however, I'm using SBCL with multithreading. I've been looking in SBCL the manual, but I can't find anything similar to setq-default. As far as I know, setq is the correct thing to use for new threads to inherit the value for special variables.
Dirk Gerrits