use of constraints like allowed-values

  • Anonymous - 2009-05-05

    I think there is something fundamental I am missing.

    (defclass A (slot i (type INTEGER)))

    I am assuming that I cannot do

    (make-instance a of A (i "hello"))

    But CLIPS lets me. Is this the desired behavior?

    Also with allowed-values.

    Is there some flag I need to use or are these constraints meant to be a suggestion or for documentation purposes?


    • Anonymous - 2009-05-06

      Never mind. I just learned about (set-dynamic-constraint-checking TRUE)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks