[elephant-devel] strings as Class Indices ?

Ian Eslick eslick at csail.mit.edu
Sun Aug 6 19:13:14 UTC 2006


That's interesting, that code works fine on my system.

Have you run the full Elephant regression tests on clisp?  Did they all
pass?

Regards,
Ian

franks-muc at web.de wrote:
> I wonder if it is possible to use strings in class indices. The example from the manual 
> using integers works well on my computer (windows,acl-trial,elephant,postgres). 
> I modified this example to use strings:
>
> (defclass idx-four ()
>   ((slot1 :initarg :slot1 :accessor slot1 :index t))
>   (:metaclass persistent-metaclass))
>
>
> (defun make-idx-four (val)
>   (make-instance 'idx-four :slot1 val))
>
> (with-transaction ()
>   (mapc #'make-idx-four '("1" "1" "1" "2" "2" "4" "5" "5" "5" "6" "10")))
>
> (get-instances-by-value 'idx-four 'slot1 "1")
>  ==> NIL
>
> I suspect that nil is not the desired result since other examples provided 
> for elephant suggest that strings should work (see (get-instance-by-value 'user 'name name)
> in http://common-lisp.net/pipermail/elephant-devel/2006-July/000477.html).
>
> Could someone please explain where I am wrong ?
> Thank you in advance!
> Frank Schorr
>
>
> _____________________________________________________________________
> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> http://smartsurfer.web.de/?mc=100071&distributionid=000000000071
>
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel
>   



More information about the elephant-devel mailing list