[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "or" shortcut does not work - but why?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 16 Jun 2007 12:26:38 -0300
> local Result = false; -- you could also use "nil" here
> Result = Result or "anything else";
> io.stdout:write("Result = '"..tostring(Result).."'");
>
> yields "false" (or "nil", resp.) rather than "anything else"
Perhaps this is related to this bug, which apparently only surfaces in
Windows: http://www.lua.org/bugs.html#5.1.2-2