I need to use several templates cntaining enumerated fields (inherited from C program). How can I implement this type in CLIPS? Is it possible to define a generic ENUM-TYPE class that, given the enumerate int value, returns the consistent string value, and vice versa?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to use several templates cntaining enumerated fields (inherited from C program). How can I implement this type in CLIPS? Is it possible to define a generic ENUM-TYPE class that, given the enumerate int value, returns the consistent string value, and vice versa?
You can store an instance in a fact slot, so it's certainly possible.