On Tue, 7 Apr 2020, Allin Cottrell wrote:
On Tue, 7 Apr 2020, Artur Tarassow wrote:
>>> foo(&mybundle, X, 1, 5, 0, 1) versus
>>>
>>> foo(&mybundle, X, TRUE, 5, FALSE, 1)
>>
> Oh yes, this is nice to read! I like it.
>
> What about function statements of this type:
>
> <hansl>
> function void foo (const bool B[FALSE])
> print B
> end function
> foo()
> </hansl>
>
> Does it make sense to allow such arguments for booleans? Currently that
> fails.
That occurred to me too, but I haven't tried to enable it yet.
It's now enabled in git. Illustration:
<hansl>
function scalar not (bool s[TRUE])
return s ? FALSE : TRUE
end function
eval not(TRUE)
eval not(FALSE)
</hansl>
Allin