Re: [iterate-devel] Iterate error with multiple-value-setq
Stonewall Ballard wrote:
I spent some time tracing the code, and found that multiple-value-bind is being expanded into multiple-value-bind-call because m-v-b is a macro. Perhaps it's not in other Lisps. It is a macro in ANSI-CL.
The first test in the cond of WALK (macro-function (car form) *env*) was true of m-v-b, so it dutifully expanded it and recursed.
I believe you missed part of my patch: the macro-function test is the *second* test my patched walk does, because it first checks for the special forms it knows how to handle: ((special-form? (car form)) ; handle known special operators first (walk-special-form form)) ((macro-function (car form) *env*) (walk (macroexpand form *env*))) Therefore, m-v-b should be handled by walk-special-form which then calls walk-m-v-b. macro-function would never be called upon '(m-v-b ...). Could you try to trace both of these and see that they are indeed traversed? There shouldn't be a need to add to *special-form-alist* because m-v-b is there! But it'll only be found if this list is tested first, not macro-function. Regards, Jorg Hohle.
I would like to put the latest stable version of iterate in cl-pdf. I've seen that there have been some modifications recently and I prefer to put a version in a reasonable stable state rather than the latest one. So if Andreas or somebody else could send it to me that would be nice. Thanks, Marc (I tried to email to Andreas but got no reply so far, maybe a wrong email)
I would like to put the latest stable version of iterate in cl-pdf. I've seen that there have been some modifications recently and I prefer to put a version in a reasonable stable state rather than the latest one. So if Andreas or somebody else could send it to me that would be nice.
It could be interesting to know for all of us, which version is considered stable. I suppose, it would be available with arch on http://common-lisp.net/project/iterate/iterate-devel@common-lisp.net- -2004 ? Thanks, Peter
participants (3)
-
Hoehle, Joerg-Cyril
-
Marc Battyani
-
ml13ļ¼ onlinehome.de