Small and flexible language Lua starts

Source: Internet
Author: User

Wow, first blog, it feels so tense. Before using C + + to write cocos, later learned to use the script to write more convenient later maintenance updates. Recently began to ponder the small script Lua,lua language package is very small and flexible, the code format is very simple and not as strict as C++java. The first is the collocation of this compilation environment. <lua official website:http://www.lua.org/>

Above is the latest version of the 5.3.1 download package, we will download it decompression. You can see that there are many. C and. h files in the SRC directory, and then we create a new vs2012 project to import all the files into the build. Then we get a LUA and Luac exe executable file, LUA is directly executing the LUA program, LUAC using a even-compiled LUA program. Let's take a look at the practice.

It may not be very convenient to do so, bloggers have done the above to know that there is a dedicated Lua compiler, really sad. Luastudio is the current compiler used by bloggers, very convenient and easy to use. But here Bo Master also met a little problem, we may also encounter, that is, when we finished writing code found unable to save, click the Save button but useless. The solution is: do not use it to give the default name, completely delete their own write.

Small and flexible language Lua starts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.