I understood the problem<div><br></div><div>What happened is I run a function that printed a list containing a generated symbol, then I copied</div><div>that list and called another function and it failed</div><div><br></div>
<div>but when I combine the calls it works fine</div><div><br></div><div>Thank you for the help</div><div><br></div><div>Kind regards</div><div>Taoufik<br><br><div class="gmail_quote">On Wed, Aug 1, 2012 at 9:49 PM, Ron Garret <span dir="ltr"><<a href="mailto:ron@flownet.com" target="_blank">ron@flownet.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try STRING= or STRING-EQUAL. (They work on symbols too, not just strings.)<br>
<div class="HOEnZb"><div class="h5"><br>
On Aug 1, 2012, at 12:41 PM, Taoufik Dachraoui wrote:<br>
<br>
> But what to do then? I want to generate *fresh* symbols and in the same time<br>
> I need to compare the symbol names<br>
><br>
> Kind regards<br>
> Taoufik<br>
><br>
><br>
> On Wed, Aug 1, 2012 at 9:31 PM, Joshua TAYLOR <<a href="mailto:joshuaaaron@gmail.com">joshuaaaron@gmail.com</a>> wrote:<br>
> On Wed, Aug 1, 2012 at 3:22 PM, Taoufik Dachraoui<br>
> <<a href="mailto:dachraoui.taoufik@gmail.com">dachraoui.taoufik@gmail.com</a>> wrote:<br>
> > Ok thanks<br>
> ><br>
> > I solved the problem by doing using (intern (symbol-name (gensym))) instead<br>
> > of (gensym)<br>
><br>
> The purpose of gensym is to produce *fresh* symbols. If you do<br>
> something like what you've proposed though, though, you're not<br>
> guaranteed to get fresh (not eq to any existing symbol) symbols (this<br>
> example is under SBCL, but similar things will work in other lisps):<br>
><br>
> * (gensym)<br>
> #:G737<br>
><br>
> * (let ((x 'g738))<br>
> (eq x (intern (symbol-name (gensym)))))<br>
> T<br>
><br>
> //JT<br>
> --<br>
> Joshua Taylor, <a href="http://www.cs.rpi.edu/~tayloj/" target="_blank">http://www.cs.rpi.edu/~tayloj/</a><br>
> _______________________________________________<br>
> Openmcl-devel mailing list<br>
> <a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>
> <a href="http://clozure.com/mailman/listinfo/openmcl-devel" target="_blank">http://clozure.com/mailman/listinfo/openmcl-devel</a><br>
><br>
> _______________________________________________<br>
> Openmcl-devel mailing list<br>
> <a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>
> <a href="http://clozure.com/mailman/listinfo/openmcl-devel" target="_blank">http://clozure.com/mailman/listinfo/openmcl-devel</a><br>
<br>
</div></div></blockquote></div><br></div>