Re: Simple Question

Brent Fulgham <[email protected]> Fri, 17 Feb 2006 20:49:00 -0800
Newsgroups gmane.lisp.lisa.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- - -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Feb 17, 2006, at 12:04 PM, Brent Fulgham wrote:
>> The query works for me with CMUCL under Linux.  It returns:
>>
>>  (((?X . #<HOBBIT {594097F5}>)) ((?X . #<HOBBIT {593FA3B5}>)))
>>
>> This may be an OpenMCL issue.
>
> No -- I think this is correct behavior.  It's just OpenMCL tags the  
> classes
> differently than CMUCL.  I believe these two results are  
> "equivalent" for
> their differing platforms.

Just to answer my question, what I wanted was something like this:

? (with-simple-query (var value)
      (retrieve (?x) (?x (hobbit (name ?name))))
        (format t "~&Found: ~A ~D~%"
           (hobbit-name value)
           (hobbit-age value)))
;Compiler warnings :
;   Unused lexical variable #:G82, in an anonymous lambda form.
;   Unused lexical variable VAR, in an anonymous lambda form.
Found: BILBO 200
Found: FRODO 100
NIL

I was forgetting that it was returning CLOS classes, and that I had  
to extract the data.

Thanks,

- - - -Brent
- - -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFD9qbzzGDdrzfvUpURAveYAJ9HFHTawBf5Id8Ms5gq+SLJcEhLLgCfWsR5
uyk8y87K+SESe5rp/jctMFA=
=qWj7
- - -----END PGP SIGNATURE-----
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFD9qc2zGDdrzfvUpURAhxPAKCVYLKzhXNUAqRgQ94/6Dhpb+gecQCfb0Gg
Ldif4omtBHhs7pbcdTe0p8o=
=nRdi
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)

iD8DBQFD9qc8zGDdrzfvUpURAloPAJ9EM6lqDrtUtusnzYlzkCKEcDrY6gCgoDlP
/XyCE1RF4G2xDHZ9bHGuDcE=
=AU69
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642