哪些版本的 LISP 有 putprop?
据称,我正在破解一个旧的 Lisp 程序,该程序曾经在 Franz LISP 中编译并运行。但 Franz LISP 太旧了,所以我正在尝试 CLISP 编译器。但是,CLISP 没有 putprop
。
我意识到我可以编写一个与 putprop
做同样事情的函数,但如果我必须执行进一步的翻译,我想知道:什么版本的 Lisp 确实有 putprop< /代码>?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
MACLISP 拥有它。 自从 据报道,Franz Lisp 与 MACLISP 类似,Kent Pitman 的 零 href="http://maclisp.info/pitmanual/cl-conv-01-intr.html" rel="nofollow">有关将 MACLISP/Zetalisp 转换为 Common Lisp 的注释 可以帮助您获取所需的代码正在努力在现代 Common Lisp 实现上运行。
祝你好运!
MACLISP had it. Since Franz Lisp is reportedly similar to MACLISP, there is a non-
zerop
chance that Kent Pitman's Notes on Converting MACLISP/Zetalisp to Common Lisp can help you in getting the code you're working with to run on a modern Common Lisp implementation.Good luck!
Common Lisp 中通过 SETF 和 GET 的组合提供了等效功能。
The equivalent functionality is provided in Common Lisp by a combination of SETF and GET.
Portable Standard Lisp 也有它,Interlisp 也有。 Common Lisp 不这样做的原因可能是因为可恶的
SETF
,您不应该用驳船触碰它,因为它会破坏性地修改数据结构。然而,其他遗留 Lisp 中的 putprop 也可能通过破坏性修改来工作,所以如果你想实现 putprop 你可以这样做:Portable Standard Lisp also has it, as does Interlisp. The reason Common Lisp doesn't is probably because of the execrable
SETF
, which you should not touch with a barge-pole, since it destructively modifies data structures. However, probablyputprop
in other legacy Lisps also work by destructive modification, so if you want to implementputprop
you could do it:我记得,Scheme 有 putprop;但你称其为 LISP 吗?
ACL2, http://en.wikipedia.org/wiki/ACL2, also has putprop, and it's built on Common Lisp.
as I remember, Scheme has putprop; but do you call that a LISP?
ACL2, http://en.wikipedia.org/wiki/ACL2, also has putprop, and it's built on Common Lisp.