(Ebook) Beginning Lua Programming (Programmer to Programmer) by Kurt Jung, Aaron Brown, ISBN 9780470069172, 9780470139523, 0470069171, 0470139528 pdf download
(Ebook) Beginning Lua Programming (Programmer to Programmer) by Kurt Jung, Aaron Brown, ISBN 9780470069172, 9780470139523, 0470069171, 0470139528 pdf download
https://ebooknice.com/product/biota-grow-2c-gather-2c-cook-6661374
https://ebooknice.com/product/beginning-lua-programming-55199762
https://ebooknice.com/product/matematik-5000-kurs-2c-larobok-23848312
https://ebooknice.com/product/sat-ii-success-math-1c-and-2c-2002-peterson-
s-sat-ii-success-1722018
(Ebook) Master SAT II Math 1c and 2c 4th ed (Arco Master the SAT
Subject Test: Math Levels 1 & 2) by Arco ISBN 9780768923049,
0768923042
https://ebooknice.com/product/master-sat-ii-math-1c-and-2c-4th-ed-arco-
master-the-sat-subject-test-math-levels-1-2-2326094
https://ebooknice.com/product/vagabond-vol-29-29-37511002
https://ebooknice.com/product/beginning-xcode-programmer-to-
programmer-2531120
https://ebooknice.com/product/lua-programming-the-ultimate-beginner-s-
guide-to-learn-lua-step-by-step-23284136
Beginning
Lua Programming
Beginning
Lua Programming
Aaron Brown began programming in elementary school on a Commodore 64. He plays various musical
instruments and speaks Esperanto.
Credits
Acquisitions Editor Vice President and Executive Publisher
Kit Kemper Joseph B. Wikert
This project has had strong and capable guidance from Kit Kemper and Maryann Steinhart at Wiley
Publishing. Maryann was remarkably responsive in making sure our questions were answered promptly.
May Kit and Maryann land leading roles when Hollywood makes Beginning Lua Programming into a
major motion picture.
Laurels and commendations go to Adam Dumas, the best technical editor a book could possibly have.
Adam’s thoroughness and attention to detail uncovered a humbling number of issues with the manuscript,
all of which were brought to our attention in the most courteous and constructive way and often with
insightful corrections.
The Lua community provided much help and many answers. Thanks go to Roberto Ierusalimschy,
Waldemar Celes, and Luiz Henrique de Figueiredo for creating a remarkable language about which
it is easy to remain enthusiastic. Roberto and Luiz Henrique also answered some specific questions
related to this book. The following people were very helpful in answering questions about their respec-
tive projects: André Carregal (LuaForge and the Kepler Project), Mark Hamburg (Adobe Lightroom),
Asko Kauppi (LuaSDL and LuaX), and Kein-Hong Man (ChunkSpy and the No-Frills Introduction to
Lua 5.1 VM Instructions).
From Kurt Jung: Collaborating with an individual as gifted and inventive as Aaron has been an entirely
rewarding experience. It’s with great pleasure that I look forward to future projects together. Multajn
dankojn, mia bonamiko.
The encouragement of my mother and other family members has been greatly appreciated. Although
writing this book may have given me a great excuse to delay various chores (most notably the one
involving a lawn mower) and household repairs, it never interfered with the frequent, pleasurable, and
bonding walks I take with my wife Maura, daughter Laura, and our bundle of canine energy, Brilla.
I owe the greatest thanks to Maura for her support during this endeavor.
From Aaron Brown: Apart from being my programming mentor, inviting me to collaborate on this book
with him, and being an all-around nice guy, Kurt Jung is one of the few true kindred spirits I have
encountered. Mia teraplano estas plena je angiloj!
Cathy Lewis gave advice on the writing process at a pivotal moment. She (in her capacity as my girlfriend),
my bandmates, and family also deserve thanks for their understanding of my reduced availability while
slaving in the book mines.
Special thanks to Mom (a.k.a. Marty Brown), who bought me that first computer so long ago.
Contents
Acknowledgments ix
Introduction xxiii
xii
Contents
xiii
Contents
Looping through Tables 124
Tables of Functions 128
The Table Library 128
table.sort 128
table.concat 131
table.remove 132
table.maxn 132
Object-Oriented Programming with Tables 133
Functions with Variable Numbers of Arguments 136
Defining Vararg Functions 136
Scripts as Vararg Functions 140
Keyword Arguments 143
Different but the Same 144
Table Equality 144
Avoiding Bugs by Understanding Mutability 145
Variables and Mutable Values 145
Tables and Functions 147
Copying Tables 148
Building Other Data Structures from Tables 152
Custom-Made Loops 158
Global Variable Environments 163
Summary 168
Exercises 169
xv
Contents
Chapter 8: Extending Lua’s Behavior with Metamethods 249
Using Concatenation and Arithmetical Operators on Tables 249
Relational Metamethods 257
Indexing and Call Metamethods 258
Non-Tables with Metamethods 265
Non-Syntactical Metamethods 267
Metamethod Applicability 268
Summary 268
Exercises 269
xvi
Contents
The Debug Library 308
Inspecting and Manipulating Running Code 308
Hooks 315
Other Functions in the Debug Library 321
Summary 321
Exercises 322
xvii
Contents
Operating System Library 368
CPU Timing 368
Time and Date Functions 368
Filesystem Functions 369
Other Operating System Functions 370
Debugging Library 370
Summary 373
xviii
Contents
The SQLite Database Library 405
Building SQLite3 405
Building SQLite3 on Unix-Like Systems 405
Building SQLite3 on Windows 406
Building lua-sqlite3 407
Building lua-sqlite3 on Unix-Like Systems 407
Building lua-sqlite3 on Windows 408
Using lua-sqlite3 409
Summary 411
Exercises 412
xix
Random documents with unrelated
content Scribd suggests to you:
The Project Gutenberg eBook of Harhama III
This ebook is for the use of anyone anywhere in the United States
and most other parts of the world at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it
under the terms of the Project Gutenberg License included with this
ebook or online at www.gutenberg.org. If you are not located in the
United States, you will have to check the laws of the country where
you are located before using this eBook.
Language: Finnish
HARHAMA III
Kirj.
On puolipäivä.
— "Tui-tui!"
— "Kuk-kuu!"
— "Tui-tui!… Tui-tui!"
— "Kuk-kuu!… Kuk-kuu!"
Nyt olivat jo paulat valmiiksi punotut. Pitkä oli ollut työ. Puhtaat
tulivat myös ansat. Nyt odottivat kaikki vaan sitä hetkeä, jolloin
luonto avaisi lemmenantimien salatut kätköt, soittaisi kutsukellot.
Kaikki värisi odotuksesta. Valo oli korkeimmillaan, päivä pisimmillään,
kukka kauneimmillaan ja neito lemmestä lämminnä. Kaikkialla hehkui
lempi, sykki sydän, loisti lemmen puhdas paula…
*****
*****
Hän oli kävellyt jo ikäänkuin seppele päässä, kuten äiti, joka ajan
lähetessä jo nauttii äidin ilosta, on silittelevinänsä lapsensa
kiharoita… näkee sen tulevaisuuden kirkkaana… iloitsee sen onnesta
ja odottaa vaan hetkeänsä…
*****
*****
*****
*****
*****
*****
— "Nyt on voitto!"
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebooknice.com