Source: http://www.cppblog.com/Leaf/archive/2009/05/16/83145.html
It is said that the author of this article is ogdev's hack master.
Use examples to learn about Lua (1) ---- Hello World
1. PrefaceThe scripting language is indispensable in
As an Embedded Language, Lua provides a complete c api for Lua code to interact with the host program. Of course, the host language should be C or C ++. For other languages, for example, embedding Lua in the mono environment that has been popular
Note: The original text was also issued in the company's internal forum
The stack that LUA interacts with C is an important concept. The article first explains why you should introduce the LUA stack, then summarizes the APIs that are commonly used
First, the basic knowledge:
1. First Program and function:in the current learning phase, the best way to run a LUA program is through LUA's own interpreter programs, such as:
Copy Code code as follows:
/> Lua
> Print ("Hello World")
Lua 5.0Implementation principle learning notes are described in this article,LuaThe development language of small software was born in a scientific laboratory. It is widely used in game development by many large projects in the world. What do we
Environment: Lua for Windows (LfW)Home: http://luaforwindows.luaforge.net/https://code.google.com/p/luaforwindows/Lua for Windows is actually a set of LUA development environments that include:LUA interpreter (LUA interpreter)Lua Reference Manual
LUA Practice PreparationWhen I started practicing Lua, I needed a LUA interpreter to execute LUA code, I learned LUA on windows, and I needed to generate the latest version of the LUA interpreter myself.Methods are seen in:Http://www.lua.org/manual/5
Author: Mu Feng
In this article, I would like to introduce you to Lua program design. I suppose everyone has learned at least one programming language, such as basic or C, especially C. Because Lua is used as a script in the Host Program for the
I. Overview Nginx is a high-performance, lightweight Web server that supports highly concurrent. Currently, Apache is still the boss of Web servers, but in the world's top 1000 Web servers, Nginx has a share of 22.4%. Nginx uses a modular
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.