lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> IMHO, the extern "C" { } inside Lua is better for the app 
> developer, maybe
> worse for the developers of Lua. A chance to lower the amout 
> of stuff the
> user(developer) has to worry about is missed and Bill Gates 
> makes another
> million. :-)

Is it too much to ask that you add 2 lines of code to when you include
the Lua interface?

extern "C" {
#include "lua"
}

The design directives of Lua are very clear: ANSI C. I would argue that
the above code makes it far more clear that you are interfacing C++ with
a C library.

I doubt you had to anything else, other than add these lines in order to
use Lua within you application. Find me a piece of Microsoft software
that is that easy to use, or that matter is free (in all its meanings).
The fact that Lua is clean and free of dependencies is a feature.

I would venture that most of the posters on this list are using Lua
because of their experiences with Microsoft software (or other large
redundant timewasters) and realise that focussed, open source projects
are the way to true productivity.

Regards,
Nick

[shudders remembering the horror of learning DirectX and MFC]