From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail From: Erik Naggum Newsgroups: comp.lang.lisp Subject: Re: (setq car 0) - Functions on Indices Date: 02 Oct 2002 23:02:10 +0000 Organization: Naggum Software, Oslo, Norway Lines: 27 Message-ID: <3242588530612895@naggum.no> References: <6f7fa60c.0210012324.57e1a382@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: maud.ifi.uio.no 1033599731 1741 129.240.65.5 (2 Oct 2002 23:02:10 GMT) X-Complaints-To: abuse@ifi.uio.no NNTP-Posting-Date: 2 Oct 2002 23:02:10 GMT Mail-Copies-To: never User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.lisp:42794 * Bill Birch | Paul Graham's web site (www.paulgraham.com) has a neat idea regarding | compounds in Arc. This "neat idea" dates about about 30 years. It is most noted for having been abandoned. Ignorants keep reinventing what they do not understand are bad ideas until they have tried them for a while. The basic idea was to store an array in the function slot of a symbol. | Your views? If you want this, you have closures and local functions and macros. (defun foo (string ...) (macrolet ((string (n) `(char string ,n))) ... (string 42) ... )) This even works when the indexes are in variables. <-- neat idea -- Erik Naggum, Oslo, Norway Act from reason, and failure makes you rethink and study harder. Act from faith, and failure makes you blame someone and push harder.