Recapping Lua-C++ Communication Mechanisms
In Part 2 of this book, we learned how to call Lua from C++. In Part 3, we learned how to call C++ from Lua. In the course of this book, we have explored many examples, some of which depend on advanced C++ techniques.
This chapter will summarize all the communication mechanisms between Lua and C++, stripping away most of the C++ details. We will also dig deeper into some of the topics that we have not demonstrated in the examples yet.
You can use this chapter to recap what you have learned. For each topic, we will list some important Lua library functions. You can check the Lua reference manual for more related functions.
In the future, as you progress in your programming journey, you might adopt different C++ techniques in your projects. In such cases, this chapter will be a useful source for quick reference.
We will cover the following topics:
- The stack
- Calling Lua from C++
- Calling C++ from Lua
- Implementing...