Re: [iterate-devel] Problem with DEFCLAUSE-DRIVER

2008-03-21 Thread Marco Antoniotti
Sorry. My bad. Now I notice the DEFMACRO-DRIVER. Cheers Marco On Mar 21, 2008, at 19:46 , Chris Dean wrote: Marco Antoniotti <[EMAIL PROTECTED]> writes: Well any suggestions? Here's some untested code, let me know if there are any problems with it: (defmacro-driver (FOR var

Re: [iterate-devel] Problem with DEFCLAUSE-DRIVER

2008-03-21 Thread Marco Antoniotti
Ok. Yours works. Why? I fail to see the difference with mine. Cheers Marco On Mar 21, 2008, at 19:46 , Chris Dean wrote: Marco Antoniotti <[EMAIL PROTECTED]> writes: Well any suggestions? Here's some untested code, let me know if there are any problems with it: (defmacro-driv

Re: [iterate-devel] Problem with DEFCLAUSE-DRIVER

2008-03-21 Thread Chris Dean
Marco Antoniotti <[EMAIL PROTECTED]> writes: > Well any suggestions? Here's some untested code, let me know if there are any problems with it: (defmacro-driver (FOR var IN-ENUM e) "All elements in the enum" (let ((enum (gensym "ENUM-")) (kwd (if generate 'generat

Re: [iterate-devel] Problem with DEFCLAUSE-DRIVER

2008-03-21 Thread Marco Antoniotti
Well any suggestions? Please note that the manual pages in HTML are not that useful. Cheers Marco On Mar 17, 2008, at 15:52 , Marco Antoniotti wrote: On Mar 17, 2008, at 14:11 , Hoehle, Joerg-Cyril wrote: Hi, Marco Antoniotti wrote: (defclause-driver (FOR var OVER enum) `(pro

Re: [iterate-devel] Problem with DEFCLAUSE-DRIVER

2008-03-17 Thread Marco Antoniotti
On Mar 17, 2008, at 14:11 , Hoehle, Joerg-Cyril wrote: Hi, Marco Antoniotti wrote: (defclause-driver (FOR var OVER enum) `(progn (with ,e = ,enum) (,kwd ,var next ... defclause-driver is NOT the form you need when you want to supply code which must be macro-expanded in tur

Re: [iterate-devel] Problem with DEFCLAUSE-DRIVER

2008-03-17 Thread Hoehle, Joerg-Cyril
Hi, Marco Antoniotti wrote: (defclause-driver (FOR var OVER enum) `(progn (with ,e = ,enum) (,kwd ,var next ... defclause-driver is NOT the form you need when you want to supply code which must be macro-expanded in turn. >I feel there is a but either in the manual or in the c

[iterate-devel] Problem with DEFCLAUSE-DRIVER

2008-03-14 Thread Marco Antoniotti
Hi I am trying again to extend ENUMERATIONs with ITERATE. Here is my try -*- Mode: Lisp -*- iterate-enumeration.lisp -- ITERATE extension for ENUMERATIONs. (in-package "ITERATE") (defclause-driver (FOR var OVER enum) (let ((e (gensym "ENUM-")) (kwd (if generate 'gene