Recently there is no continuation of the Idlcpp tutorial, because it is busy to make drastic changes.
At first, it was planned to use Idlcpp to deal with the new code, so that the new code could be easily provided to the script. Later, I hope to be able to transplant a large number of existing code, after all, there are a large number of C + + library. Porting these libraries to scripting languages will improve the usability of the scripting language. So I started trying to transplant some of the existing libraries and then found some problems.
1. The template function is too weak.
2. Overloaded function limits are larger.
3. There are no operator overloads.
4. Because of the use of PTR instead of *, using ref instead of &, the transplant is troublesome.
In response to the above problems, the decision to modify the idlcpp. Now finally come to an end, after the test std::vector transplant basically no problem, estimated to deal with some other not very sick template Library basically no problem. But Std::vector's transplant version has a big problem with performance, and in Lua, there are several times performance gaps compared to LUA tables, presumably because of excessive packaging. This is also no way, in order to GM must pay some performance cost. Of course, this is not a typical C + + script mixed programming situation, so do not have to worry too much.
In the near future, consider porting some common C/C + + libraries, first of all the standard libraries and standards libraries. Then pick up some of the transplants that you'll use.
Since Idlcpp has also made some changes at the syntactic level, the previously written tutorials have been modified.
One of the first articles in this
Idlcpp Tutorial of C + + mixed programming (I.)
Idlcpp Functional Improvements