[elephant-devel] including multiple slot-names and their values in the API get-instances-by-value

Arjun Mullick arjunmullick at gmail.com
Fri Dec 25 13:21:12 UTC 2009


Hello,

this is the definition of my class
(defpclass classname ()
  ((slot1 :accessor slot1 :initarg :slot1 :index t)
   (slot2 :accessor slot2 :initarg :slot2 :index t)
   (slot3 :accessor slot3 :initarg :slot3 :index t)))

If I make three instances of this class with following slot values:

INSTANCE1   slot1:"a"    slot2:"b"   slot3:"c"
INSTANCE2   slot1:"a"    slot2:"n"   slot3:"d"
INSTANCE3   slot1:"a"    slot2:"b"   slot3:"m"

Now if the user gives the values for slot1 and slot2 I should be able to get
slot3
For example: If the user gives slot1 as "a" and slot2 as "b" then two vaues
"c" and "m" should be returned


We tried the API get-instances-by-value
Is there a way I can include multiple slot-names and their values in
get-instances-by-value


Arjun Mullick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/elephant-devel/attachments/20091225/3f4cf575/attachment.html>


More information about the elephant-devel mailing list