Page 1 of 1

Implementing a property using a fact

Posted: 16 Mar 2021 13:00
by jarnold30
Hi folks
In the Language reference, it states that "the property can be implemented as a fact variable with the same name as the property".

I've tried this but I get an error
error c264 : No implementation for the property 'slot::aDiagram (i)' in the class 'slot'

Why doesn't it work?

Re: Implementing a property using a fact

Posted: 16 Mar 2021 13:36
by Thomas Linder Puls
I guess that you didn't declare the fact variable in the implementation:

Code: Select all

implement slot ... class facts     aDiagram : ... ... end implement slot

Re: Implementing a property using a fact

Posted: 16 Mar 2021 13:52
by jarnold30
that worked, thanks