I'm sorry, Matt, I know this has to be frustrating for you, but I hope
you can take a little comfort in the fact that you're helping me a
lot. None of these things you're reporting are bugs, per se, but
they're all important usability issues -- things a reasonable person
would expect to work that, for one reason or another, don't. I'm glad
you're trying all these things because I'm glad to be getting them
fixed.
To fix this, modify line 305 in jess/FactList.java to look like this:
Fact fact = (Fact) vv.get(1).externalAddressValue(context);
and this important special case will then work.
I think Matt Bishop wrote:
> I am using Jess 6.0a3 and am using a query to find a specific fact. The
> query works, the enum has a valid object, but I can't work with the fact
> returned. I am using the following code to get the fact from the
> enumeration:
>
> (bind ?page (call (call ?e nextElement) fact 1))
>
>
> and then this code to manipulate the fact:
>
> (modify ?page (onSection ?section))
>
> I get the error: Message: Not a fact: "<External-Address:jess.Fact>" (type
> = EXTERNAL_ADDRESS).
>
> If I use this code to modify instead,
>
> (modify (call ?page getFactId) (onSection ?section))
>
> I get a different error: Message: Not a fact: "call ?page getFactId" (type =
> LIST).
>
> What is odd is that if instead of calling modify I call (retract ?page) the
> code experiences no errors.
>
> Any workarounds? I am executing these calls in a function.
>
> ______________________________________________
> Matt Bishop - Engineering Manager, UpFront
>
> We're Growing - http://www.scenicsoft.com/jobs
>
>
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------