This book is a detailed and authoritative introduction to all aspects of Lua programming written by Lua\'s chief architect.
Programming in Lua provides a solid base to any programmer who wants to use Lua. It covers all aspects of Lua—from the basics to its API with C. The book is the main source of programming patterns for Lua, with numerous code examples that help the reader to make the most of Lua\'s flexibility and powerful mechanisms. The book is targeted at people with some programming background, but it does not assume any prior knowledge about Lua or other scripting languages.
When you buy a copy of this book, you help to support the Lua project.
For the official definition of the Lua language, see the reference manual.
文档内容节选
Last update Sat Mar 18 220008 GMT 2017 build 21 Programming in Lua Fourth Edition Roberto Ierusalimschy Programming in Lua Fourth Edition Roberto Ierusalimschy Copyright 2016 2003 Roberto Ierusalimschy Licensed for the exclusive use of Eric Taylor jdslkgjfiapgjflksfgyandexcom Table of Contents About the Book ix I The Basics 1 1 Getting Started 4 Chunks 4 Some Lexical Conventions 6 Global Variables 7 Types and Values 7 Nil 8 Booleans 8 The StandAlone Interpreter 9 2 Interlude The E......