Newsgroups: comp.lang.lisp
From: Mark Conrad <nos...@iam.invalid>
Date: Wed, 07 May 2003 23:10:16 GMT
Local: Wed, May 7 2003 7:10 pm
Subject: Re: Recreational Common Lisp :)
In article <060520031307021934%nos...@iam.invalid>, Mark Conrad
Here is the *CORRECTED* version of Paul Graham's "six macros" code from his 1994 "On Lisp" book Joe Marshall kindly pointed out that some of my added code would break After some brief tests, the addition of eval-when does indeed appear to Copy and paste *everything* from between the asterisk lines to your ;; CORRECTED VERSION - REPLACE YOUR OLDER VERSION (defun group (source n) (defmacro abbrev (short long) (defmacro abbrevs (&rest names) (abbrevs ;; Below are Paul Graham's six macros. About the only changes (=setq (eval-when (:load-toplevel :execute) (defmacro =lambda (parms &body body) (defmacro =defun (name parms &body body) (defmacro =bind (parms expr &body body) (defmacro =values (&rest retvals) (defmacro =funcall (fn &rest args) (defmacro =apply (fn &rest args) ;******************************************* Mark- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||