[Qt-interest] runtime compilation impossible in Qt???
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Mon Aug 17 18:08:31 CEST 2009
Been done... There is a library out there.. used it a while back.. that
reads in a c++ file compiles it into a DLL/.so and allows you to run a
function from it.. Worked pretty well with the g++ flow...
Been years.. but yes, interpreters do allow dynamic functionality like
that to be easier...
Scott
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Arnold Krille
Sent: Monday, August 17, 2009 9:01 AM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] runtime compilation impossible in Qt???
On Monday 17 August 2009 17:30:10 Scott Aron Bloom wrote:
> I can tell you that anything you can do usin QT in python, can be done
> in C++...
Try executing dynamically created C++-code :-) Something like 'eval(
"print \"bla %s\"" % some_string_variable )' is not possible in C++ at
least to my knowledge. At least not as easily as in python.
One can compile the dynamic code into a library/plugin and dl-open that
but unloading and loading the new version gets harder and harder...
Arnold
More information about the Qt-interest-old
mailing list