Menu

#66 CLIPS fails deleting elder class definition.

1.0
closed
None
2021-07-08
2021-03-28
xyando
No

Hello,

Loading redefclass.clp fails like this.

         CLIPS (6.4 2/9/21)
CLIPS> (load redefclass.clp)
##~!
TRUE
CLIPS> (test)
[new] of FOO
(next [old])
[MSGFUN1] No applicable primary message-handlers found for 'show'.
[PRCCODE4] Execution halted during the actions of message-handler 'show' primary in class 'FOO'
[PRCCODE4] Execution halted during the actions of deffunction 'test'.
FALSE

The [new] instance has 'show' handler, while the [old] hasn't.
It seems as if there are two versions of FOO.

I think this is a bug of CLIPS, also think one solution for this bug is to fix CLIPS
to raise an error when CLIPS recognized it cannot be redefined while outstanding references to it still exist.

Thanks.

1 Attachments

Discussion

  • xyando

    xyando - 2021-07-08

    I found it is resolved in revision 807.
    Thanks.

     
  • Gary Riley

    Gary Riley - 2021-07-08
    • status: new --> closed
    • assigned_to: Gary Riley
     

Log in to post a comment.