=== ALL USERS PLEASE NOTE ========================
CAR and CDR now return extra values.
The function CAR now returns two values. Since it has to go to the
trouble to figure out if the object is carcdr-able anyway, we figured
you might as well get both halves at once. For example, the following
code shows how to destructure a cons (SOME-CONS) into its two slots
(THE-CAR and THE-CDR):
(MULTIPLE-VALUE-BIND (THE-CAR THE-CDR) (CAR SOME-CONS) ...)
For symmetry with CAR, CDR returns a second value which is the CAR of
the object. In a related change, the functions MAKE-ARRAY and CONS
have been fixed so they don't allocate any storage except on the
stack. This should hopefully help people who don't like using the
garbage collector because it cold boots the machine so often.
pintos源代码(pintos是由standford搭建的一个操作系统)
5星 · 超过95%的资源 需积分: 9 23 浏览量
2009-07-01
18:39:52
上传
评论
收藏 252KB GZ 举报
Stephen_Luo
- 粉丝: 0
- 资源: 1
最新资源
- python-leetcode面试题解之第157题用Read4读取N个字符-题解.zip
- python-leetcode面试题解之第156题上下翻转二叉树-题解.zip
- python-leetcode面试题解之第155题最小栈-题解.zip
- python-leetcode面试题解之第153题寻找旋转排序数组中的最小值-题解.zip
- python-leetcode面试题解之第152题乘积最大子数组-题解.zip
- python-leetcode面试题解之第151题反转字符串中的单词-题解.zip
- python-leetcode面试题解之第150题逆波兰表达式求值-题解.zip
- python-leetcode面试题解之第149题直线上最多的点数-题解.zip
- python-leetcode面试题解之第148题排序链表-题解.zip
- python-leetcode面试题解之第147题对链表进行插入排序-题解.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
前往页