Log In  

I'm not sure how practical a request this one is, but if Pico's vocabulary of Lua operators were expanded to include nand, nor, xor, and xnor, my life as a golfing programmer would be so much easier. (And if that can be done, could we also get the bitwise functions as regular old | & ^ ~ << >> operators instead?)

P#16800 2015-11-20 11:15 ( Edited 2015-11-23 07:29)

It can be done. I don't have a source on this old Lua 5.1.4 mod I used anymore, though. https://github.com/STJr/SRB2/tree/master/src/blua

P#16815 2015-11-20 23:13 ( Edited 2015-11-21 04:13)

It is a lot simpler than that. bitwise operators were added to lua 5.3

P#16890 2015-11-22 17:20 ( Edited 2015-11-22 22:20)

That's true. But then, so was a separation between floating point numbers and integers. zep would have to re-do all the fixed point precision hax all over again and whatnot. D:

P#16902 2015-11-22 23:19 ( Edited 2015-11-23 04:19)

I think it would be kinda awesome to have separate fixed point numbers and regular integers.

P#16906 2015-11-22 23:53 ( Edited 2015-11-23 04:53)

... Yeah. It certainly would.

P#16907 2015-11-23 02:29 ( Edited 2015-11-23 07:29)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 13:51:26 | 0.006s | Q:14