lua-users home
lua-l archive

"or-ing" values

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


Hello,
I try to port some code from C to Lua.
There is some code similar to this (simplified).
 ...
 unsigned char var=0;
 var |= function1();
 var |= function2();
 return var
}
How would I implement the |= in Lua?
Thanks,
Peter

AltStyle によって変換されたページ (->オリジナル) /