lua-users home
lua-l archive

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


Well, to abuse Lua's poor, embattled boolean operators even more than they are 
at present, and toss in a little bit of table-based obfuscation:

return GetSomeResult() or (GetSomeTable() or {})[key]

Ben "I'm not an evil programmer, really" Sunshine-Hill

On Sunday 24 August 2003 08:18 pm, Ando Sonenblick wrote:
> Gang, can this following code be condensed somehow into a single execution
> "block" (without making it a subroutine)?