Hi, I have this code generated from Herbal, run using JSoar.
The issue is that the memory element in question starts off as
^testing.types.Printer
^PrintString "ello!"
^PrintID "1"
But it ends up becoming:
^testing.types.Printer
^PrintString "ello!"
^PrintID "1"
^PrintString "changed"
What it should be:
^testing.types.Printer
^PrintID "1"
^PrintString "changed"
This is the action in question:
sp {apply*testing-problemspaces-initial*PrintTheString
(state <local> ^top <top> ^parent <parent> ^name testing-problemspaces-initial ^operator <o>)
(<o> ^name testing-operators-PrintTheString)
(<top> ^io <i1>)
(<i1> ^output-link <i2>)
(<o> ^Printer <Printer>)
(<Printer> ^PrintString <Printer-PrintString>)
(<Printer> ^PrintID <Printer-PrintID>)
(<o> ^Printer <Printer>)
(<Printer> ^PrintString <Printer-PrintString>)
(<Printer> ^PrintID <Printer-PrintID>)
-->
(write |<hdb>testing.operators.PrintTheString</hdb>| (crlf))
(write |<hdb>testing.actions.PrintTheString</hdb>| (crlf))
(<Printer> ^PrintString <Printer-PrintString> -)
(<Printer> ^PrintString |changed| )
}
Specifically, the removal on the third last line does not seem to be working. It should remove the "ello!" PrintString and replace it with the new PrintString "changed".
--
Sincerely,
John Finnson