Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Don_Kirby wrote:According to the system library reference V2.2.2, CByte should accept a Boolean.
You've discovered a hole in the test suite. It should have contained a test for that case (and for CBit and CNibble) which would have revealed the regression.
We've corrected the problem. The change is very localized, coming into play only for those three functions, so I'm making it available immediately for those who need it (ZBasic v2.5.1). After the new version has been fully tested, it will be integrated into the installer.
Don_Kirby wrote:According to the system library reference V2.2.2, Cbyte should accept a Boolean. It's the first type listed in the table of accepted types.
Sorry I was obviously half asleep this morning. My older hardcopy reference doesn't have it but the 2.2.2 manual does and so does the link I was pointing to