sds在Saving CLOS objects上的评论提供了对Common Lisp Open Code Collection (CLOCC)文件(closio.lisp)的引用,用于可打印地读写CLOS对象。有关安装该软件的说明,请访问Installation of CLOCC。然而,我以前没有使用过CLOCC,所以我想要一些关于设置读/写CLOS对象的额外指导。以下是到目前为止添加到我的初始化文件(.clinit)中的内容:
(in-package :cl-user)
(setq *clocc-root* "D:\\clocc\\")
(load "D:\\clocc.fasl")
(load
(compile-file ;warns about |make|::COMPILED-FILE-P being undefined
(translate-logical-pathname
"clocc:src;defsystem;defsystem")))
(dolist (s '("clocc:src;cllib;base" "clocc:src;port;sys"))
(mk:add-registry-location (translate-logical-pathname s)))关于下一步要添加什么的说明非常感谢。
发布于 2017-02-21 13:14:39
这些说明已经过时了。抱歉的。
installation instructions现在会说(我删除了您不需要的系统):
(compile-file "c:/gnu/clocc/clocc") ; or whatever ...
(load *)
;; * load the defsystem facility
;; most lisps come with "asdf"; if this fails, get it yourself from
;; https://common-lisp.net/project/asdf/
(require "asdf")
;; * compile some systems
(asdf:compile-system "port")
(asdf:compile-system "cllib")
...您需要遵循asdf instructions
$ mkdir -p ~/.config/common-lisp/source-registry.conf.d/
$ echo '(:tree "c:/gnu/clocc/")' > asdf.confhttps://stackoverflow.com/questions/42356289
复制相似问题