Thanks!! It works fine <sheepish grin><br><br><div class="gmail_quote">On Mon, Jan 24, 2011 at 12:40 AM, Olof-Joachim Frahm <span dir="ltr"><<a href="mailto:Olof.Frahm@web.de">Olof.Frahm@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Venkatesan S <<a href="mailto:svtesan@gmail.com">svtesan@gmail.com</a>> writes:<br>
<br>
> I want to use defclause-driver with the sequence keywords, I could not<br>
> figure out how to get the values passed in from, to and other such<br>
> clauses. Can anyone please provide some pointers?<br>
<br>
</div>Hi, you were just a tiny step from the working solution: With<br>
<br>
> (with ,myfrm = ,iterate::from)<br>
<br>
, that is, using the qualified FROM from the iterate package, it works<br>
just fine. You can also see this, if you macroexpand your<br>
IN-WHOLE-VECTOR definition:<br>
<br>
> (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE)<br>
> (DEFMACRO CLAUSE-FOR-IN-WHOLE-VECTOR-5<br>
> (&KEY ((:FOR VAR)) ((:IN-WHOLE-VECTOR V)) ((:FROM ITERATE::FROM))<br>
> ((:UPFROM ITERATE::UPFROM)) ((:DOWNFROM ITERATE::DOWNFROM))<br>
> ((:TO ITERATE::TO)) ((:DOWNTO ITERATE::DOWNTO))<br>
> ((:ABOVE ITERATE::ABOVE)) ((:BELOW ITERATE::BELOW))<br>
> ((:BY ITERATE::BY) 1) ((:WITH-INDEX ITERATE::WITH-INDEX))<br>
> GENERATE)<br>
<div class="im">> "All the elements of a vector (disregards fill-pointer)"<br>
</div>> ...<br>
<br>
Since all those extra symbols are not exported from the iterate package,<br>
you've got to use them explicitely.<br>
<br>
Hth and cheers,<br>
Olof<br>
<font color="#888888"><br>
--<br>
The world is burning. Run.<br>
<br>
_______________________________________________<br>
iterate-devel site list<br>
<a href="mailto:iterate-devel@common-lisp.net">iterate-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/iterate-devel" target="_blank">http://common-lisp.net/mailman/listinfo/iterate-devel</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Audentis fortuna juvat<br>