On Jan 29, 2008 1:10 PM, Ernest Friedman-Hill wrote: > > On Jan 29, 2008, at 12:42 PM, D Moon wrote: > > I thought of something like binding the singleton fact to a > > defglobal, but I think that fails due to modify being a retraction- > > assertion, which I believe would break a prior binding. > > Comments, suggestions, criticisms? > > No, that's the solution right there. The same object gets re- > asserted, so the binding doesn't get broken. Once a fact is asserted > in Jess, it's always represented by the same Java object, and its > numeric ID remains unchanged; both of these bits of info are useful > when building up structures out of facts.
fact-ID doesn't change on modify! Thank you, didn't realize that I could rely on IDs like that. So I bind on assertion and use that binding in my function call. (I have misremembered something about a fact modification being a fact retraction followed by a fact re-assertion.)
