Me being lazy I want a fast way to load a file ni the console, so I created the following, which tries to load a file by:
- converting the given file-name to a string and appending .lsp
- just converting to a string
Code Select
(define-macro (do myfile)
"tries to load the file given as a symbol, tries to append .lsp"
(println myfile)
(or
(catch (load (println (string myfile ".lsp"))))
(catch (load (string myfile)))
(throw-error (string "file not found: " myfile))))
> (do tools.lsp)
tools.lsp
tools.lsp.lsp
problem accessing file : "tools.lsp.lsp"
I understand, that it can't load tools.lsp.lsp,
but after that it should just try tools.lsp, which seems not to happen ...
and I don't at all understand, where the tools.lsp.lsp in the error message comes from ...
(verson 8.9.6 Mingw)
Ingo