Re: Simple Question

Brent Fulgham <[email protected]> Fri, 17 Feb 2006 12:04:12 -0800
Newsgroups gmane.lisp.lisa.general
Message-ID <[email protected]>
 
On Friday, February 17, 2006, at 09:07AM, Paolo Amoroso <[email protected]> wrote:

>Brent Fulgham <[email protected]> writes:
>
>> How do I "query" my assertions, as I might with a standard Prolog-
>> style database.
>[...]
>> Welcome to OpenMCL Version 1.0 (DarwinPPC32)!
>[...]
>> ? (facts)
>> #<FACT F-0, HOBBIT, CF is 0.000 ; ((AGE 100) (NAME FRODO))>
>> #<FACT F-1, HOBBIT, CF is 0.000 ; ((AGE 200) (NAME BILBO))>
>[...]
>> ? (retrieve (?x)
>> (?x (hobbit (name ?name))))
>> ;Compiler warnings :
>> ;   Unused lexical variable #:G30, in an anonymous lambda form.
>> (((?X . #<HOBBIT #x844F246>)) ((?X . #<HOBBIT #x84397BE>)))
>
>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.

Thanks,

-Brent


-------------------------------------------------------
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