This book is an updated and expanded version of the second edition of Programming in Lua (also known as the PiL 2 book). Although the book structure is virtually the same, this new edition has substantial new material.
First, I have updated the whole book to Lua 5.2. Of particular relevance is the chapter about environments, which was mostly rewritten. I also rewrote several examples to show how to benefit from the new features offered by Lua 5.2. Nevertheless, I clearly marked the differences from Lua 5.1, so you can use the book for that version too.
Second, and more important, I have added exercises to all chapters of the book. These exercises range from simple questions about the language to full small-size projects. Several exercises illustrate important aspects of programming in Lua and are as important as the examples to expand your toolbox of useful techniques.
As we did with the first and second editions of Programming in Lua, we selfpublished this third edition. Despite the limited marketing, this avenue brings several benefits: we have total control over the book contents; we keep the full rights to offer the book in other forms; we have freedom to choose when to release another edition; and we can ensure that the book does not go out of print.
Если вам понравилась эта книга поделитесь ею с друзьями, тем самым вы помогаете нам развиваться и добавлять всё больше интересных и нужным вам книг!