[Openmcl-devel] (gethash '(0) foo)

Ron Garret ron at flownet.com
Thu Jul 7 06:27:21 PDT 2016


It’s you.  :-)

? (eql '(0) '(0))
NIL

You want an EQUAL hash table, not an EQL hash table.

rg

On Jul 7, 2016, at 6:24 AM, Pierre Bessière <Pierre.Bessiere at imag.fr> wrote:

> Hi all :-)
> 
> Is it a bug ? or something I make wrong ?
> 
> ? (setf foo (make-hash-table))
> #<HASH-TABLE :TEST EQL size 0/60 #x3020010FE25D>
> ? (setf (gethash '(0) foo) 42)
> 42
> ? (gethash '(0) foo)
> NIL
> NIL
> 
> Thanks in advance.
> 
> _________________________________
> Pr. Pierre Bessière - CNRS
> **********************
> SORBONNE Universités - UPMC - ISIR
> 
> http://bayesian-programming.org
> Tel: +33 1 44 27 51 54
> Skype: Pierre.Bessiere
> 
> Pyramide - T55/65
> CC 173 - 4 Place Jussieu
> 75005 Paris
> FRANCE
> _________________________________
> 
> 
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> https://lists.clozure.com/mailman/listinfo/openmcl-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20160707/5997a481/attachment.htm>


More information about the Openmcl-devel mailing list