C H A P T E R  13

image

Tips, Tricks, and Optimization

This is the third and last chapter that is entirely focused on Lua and uses only a few functions of the World of Warcraft API. I will show you a few useful tips and tricks you can use in your addons. This chapter also covers the coroutine standard library, which hasn't been discussed yet as it is quite complicated and rarely used in addons (but it is still very powerful).

I will also show you how a few things in Lua work internally, including strings and tables. It is important to understand how these elements work if you want to use them in a smart way. Every data structure has its strengths and ...

Get Beginning Lua with World of Warcraft Addons now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.