florian
Group: Members
Posts: 66
Joined: Dec. 2006 |
|
Posted: Oct. 06 2007,17:39 |
|
Quote | I've found the use of QT and fltk UI builders very easy. With them I can easily create professional-looking gui apps, that execute very fast, compared to Lua for example.
|
I believe the best for DSL would be nice to have murgalua compiled with fltk as a SHARED lib, so that this lib would be accessible to other light fltk c/c++ programs.
Quote | Yes, I am lazy, and since I already know Java, I think learning C will be easier than learning Lua.
|
Not necessarily! C/C++ has a similar overall syntax than Java. Yet, memory allocation, pointers, and c++ references might can be very tricky when coming from Java (which has garbage collection and has an implicit use of references)
Quote | Can I just mix C and C++ code in the same file?
|
In your case, as long as you can compile using g++, you probably can quite hapilly use a mix of c and c++ in your own code. Most of the trouble of mixing c and c++ is when using a pure c lib from c++ (then you should make sure you include everything with extern "C") or when exposing your c++ lib to c.
A very good resource if you have to deal with c++ is the the C++ FAQ Lite. Look at item 32; this is specifically about mixing C and C++
|