Ok thanks<div><br></div><div>I solved the problem by doing using (intern (symbol-name (gensym))) instead of (gensym)</div><div><br></div><div>I did not know that the generated symbols do not belong to any package:</div><div>
<br></div><div>(symbol-package '#:G34159)</div><div>> NIL</div><div><br></div><div>Is there any reason for this? because usually a symbol is interned in the current package</div><div><br></div><div>Kind regards</div>
<div>Taoufik</div><div><br><br><div class="gmail_quote">On Wed, Aug 1, 2012 at 9:07 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">
You should read this:<br>
<br>
<a href="http://www.flownet.com/ron/packages.pdf" target="_blank">http://www.flownet.com/ron/packages.pdf</a><br>
<br>
Particularly section 2.<br>
<br>
rg<br>
<div><div class="h5"><br>
On Aug 1, 2012, at 12:03 PM, Taoufik Dachraoui wrote:<br>
<br>
> Hi<br>
><br>
> I am having a problem with the following:<br>
><br>
> ? (equal '#:G34159 '#:G34159)<br>
> NIL<br>
><br>
><br>
> In the program I use gensym to generate new symbols and in another function<br>
> I compare the symbols for equality<br>
><br>
> How do I fix this? I do not understand how come this 2 generated symbols are not equal,<br>
> is this special rule for generated symbols?<br>
><br>
> Kind regards<br>
> Taoufik<br>
><br>
</div></div>> _______________________________________________<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>
</blockquote></div><br></div>