-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Integrate Lua with C++
By :

We will review the exercise from the previous chapter. The solution this book has adopted requires progressive and minimal changes. It also leads naturally to the feature covered in this chapter.
If you have not implemented your own solution and are willing to stop here for a moment, this is another chance to give it a shot. Many technologies are simple in explanation but hard to grasp. The best way to understand them is to review and practice them, hands-on, again and again until you get an "aha" moment.
Now, we will review a solution. The focus is on the changes and key concepts.
To make a factory, we only need to change Destinations.h
and Destinations.cc
. In your preferred IDE, you can open the end
project for Chapter 7 and the begin
project for this chapter to check the differences.
Let us first look at the header file for the factory class declaration. You can find the following declarations in...