gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] Re: possible dotimes enhancement


From: Paul F. Dietz
Subject: Re: [Gcl-devel] Re: possible dotimes enhancement
Date: Sat, 02 Aug 2003 22:01:50 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Camm Maguire wrote:

Paul, does this mean I can do something like

aref -> si::arefold

(defmacro aref (a &rest sub &aux i new-sub) (dolist (i sub)
    (push `(the fixnum ,i) new-sub))
  `(arefold ,a ,@new-sub))

???

Yes, although it would have to be a compiler macro, since
the user can do #'aref.

(The i aux parameter is redundant, btw, and you need to reverse
new-sub.)

        Paul






reply via email to

[Prev in Thread] Current Thread [Next in Thread]