Ken Tilton wrote: > So this: > (defmethod tf-reverse (id (eql ',sub-id)) resx (drv-opnds tf drv)) > ,@reverser) > > becomes this: > > (defmethod tf-reverse ((id (eql ',sub-id)) tf drv > &aux (opnds (drv-opnds tf drv))) > (loop for resx in (results drv) > ,@reverser))
I don't see why you can't just write a function that loops over the results and calls the user's reversal function for each one. def reverse_multiple(skill, resx_list, opnds): for resx in rex_list: skill.reverse(resx, opnds) There's no need to macro-expand this code into every reversal function, when it can be done once as part of the framework that calls the reversal functions. -- Greg -- http://mail.python.org/mailman/listinfo/python-list