lua-users home
lua-l archive

[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