wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes defquery example from book not working for release > 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "defquery example from book not working for release > 6.1" Watch "defquery example from book not working for release > 6.1" New topic
Author

defquery example from book not working for release > 6.1

Michael Cobburn
Greenhorn

Joined: Sep 21, 2004
Posts: 1
Why is the following example extracted from Jess in Action

(defquery find-affordable-gifts
(declare (variables ?lower ?upper))
(gift (price ?p& and (> ?p ?lower) (< ?p ?upper))))
)

is generating the following message:

Jess reported an error in routine HasLHS.addPattern
Message: Variable used before definition: lower

What is the updated correct writing of the defquery?
Again it is working fine in 6.1 p6 not in 7.0 a1

Thanks, Michael
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Hi Michael,

Welcome to JavaRanch!

This is a bug. Jess 7.0a1 just came out on Friday, but this bug has already been reported. There will be a 7.0a2 soon that will fix the reported bugs and add some more new stuff.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: defquery example from book not working for release > 6.1