[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: difference between


I mean, if there is no conversion, then there should be at least a warning,
if not error. Otherwise bugs like this are easy to miss.


Jussi

On Sat, Oct 10, 2026 at 10:59 PM Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
wrote:

> Strings and Objects are automatically converted to boolean.
>
>
> Yes, this is handy and good, but a bit of a different issue.
>
>
> A void string and a null reference is FALSE, the others are TRUE.
>>
>
> False = Null returns False. IE, NULL, is not False. And 1 = True returns
> False.
> At least this is what happens with IF clauses in my currently installed
> version. And apparently also in the version valaquarus uses.
>
>
> Jussi
>

Follow-Ups:
Re: difference betweenBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
difference betweenvalaquarus <valaquarus@xxxxxxxxx>
Re: difference betweenJussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
Re: difference betweenJussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
Re: difference betweenJussi Lahtinen <jussi.lahtinen@xxxxxxxxx>
Re: difference betweenBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: difference betweenJussi Lahtinen <jussi.lahtinen@xxxxxxxxx>