Hi,
The current invariant in BOOLEAN_REF has a clause
involutive_negation: (not (not Current)) ~ (Current)
When evaluated outside the class BOOLEAN it results in False,
because "not" returns BOOLEAN and the type of Current is not
BOOLEAN.
What is the best way to fix the issue? I can see two approaches:
1. Change the signature of "not" to return "like Current" instead of "BOOLEAN".
2. Change the class invariant clause to look like
involutive_negation: not (not item) = item
The first approach is more general, but may require somewhat smarter code generation.
The second one is simpler, but changes the original class invariant.
Any comments?
Thanks,
Alexander Kogtenkov
------------------------------------------------------------------------------
_______________________________________________
freeelks-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freeelks-devel