Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A bug-- of lua5.1 does not support bit operations.

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Download the luaforwindows5.1.exe file and follow it, write a script file as follows, and run it, the result is unexpected, unexpec symbol near'&'. This means there is a grammatical error. Not even with the latest version of 5.1.5. Finally, I saw the instructions in the lua5.1 manual:

2.5.1-Arithmetic Operators

2.5.2-Relational Operators

There is no bitwise operators at all, which means that lua5.1 cannot perform bit operations.

Later, I checked the lua5.3 manual and found that bitwise operators,&, |, ~ and, OR, XOR operations all exist.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report