next up previous contents
Next: 4.3 Terminology Up: 4. Implementing COM objects Previous: 4.1 Introduction   Contents

4.2 Is it really useful?

Some might argue that it would be better to implement COM object in languages like C++ or Visual Basic©. That's true in many situations, and false in several others. First, dealing with COM is not easy and LuaCOM hides most its complexities; besides that, there is another compelling reason for using LuaCOM at least in some situations: the semantics of Lua tables and the way LuaCOM is implemented allows one to do some neat things:

Of course all this flexibility comes at some cost, primarily performance. Anyway, depending on the application, the performance drawback might be negligible.

LuaCOM does not solve all problems: there is still the need of a type library, which must be build using third party tools.


next up previous contents
Next: 4.3 Terminology Up: 4. Implementing COM objects Previous: 4.1 Introduction   Contents
Fabio Mascarenhas de Queiroz 2004-09-13