04-01-2021, 11:19 AM
Hi,
Yes it should be possible to add a ludeme that converts a boolean value to an integer, e.g.
(int <boolean>)
Or even perhaps allow boolean values to be passed as arguments to integer parameter and silently do the conversion. This would be equivalent to making <boolean> a clause of the <int> rule:
<int> ::= <boolean> | all the other int functions...
We'll look into this after Easter.
Regards,
Cameron
Yes it should be possible to add a ludeme that converts a boolean value to an integer, e.g.
(int <boolean>)
Or even perhaps allow boolean values to be passed as arguments to integer parameter and silently do the conversion. This would be equivalent to making <boolean> a clause of the <int> rule:
<int> ::= <boolean> | all the other int functions...
We'll look into this after Easter.
Regards,
Cameron