Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site uwai.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!uwvax!uwai!ken From: ken@uwai.UUCP Newsgroups: net.lang.lisp Subject: Re: OPS-5 sa question ??? Message-ID: <312@uwai.UUCP> Date: Tue, 29-Oct-85 12:57:04 EST Article-I.D.: uwai.312 Posted: Tue Oct 29 12:57:04 1985 Date-Received: Fri, 1-Nov-85 01:20:24 EST References: <16700005@uiucuxc> Organization: U of Wisconsin CS Dept Lines: 44 > . . . > I just managed to get my hands on OPS-5. I was trying to > figure how to load and unload rules from ops-5. > I have also just begun using OPS-5 so this is as much question as it is answer. > Here is what I am trying to do: I have several > files which contain rules. I plan to use these sets of rules > seprately. I intend to load the first file of rules followed by > data, followed by the (run) command. After ops has stopped I > want to load the second file of rules but keep the Working > Memory in place. In so doing I will be able to pass the reults of > on set of rules onto the next set. I would be then able to solve > the problem in stages. > . . . It seems that the loading more rules after you've started OPS5 is no problem -- just load them using: (load 'rules.file). However, you may not load any *declarations* once some rules have been loaded. 'Unloading' rules is a more serious problem. I have a question related to this: What is an efficient debugging cycle for OPS5? When I find a bug in a rule, I ^z out of lisp, restart vi with my rule file in it, and make the needed changes to the rule. However, when I go back to lisp, I can't simply reload this file -- I get lots of errors when I try. It seems the errors are caused by the attempt to, in effect, add a rule with the same name as one that is already in the rule net. Of course, what I want to happen is to have the new version of the rule overwrite the old one. OPS5 doesn't seem to work this way. So my current alternative is to exit lisp, then restart it, then reload OPS5 and then finally load my modified rule file. Clearly, there has got to be a better way. I've just started using OPS5 so please excuse my ignorance. The manual I have doesn't seem to address this problem. If anyone can enlighten me or point me to a reference that will, it would be greatly appreciated. Thanks in advance for any info, -Ken Koedinger (ken@ai.wisc.edu) University of Wisconsin