Hello Fellow Mongers,
I just returned to Boston, and I am looking forward to see Damian
tomorrow. In the meantime, here is a question worthy of you:
I have been asked to provide scripting capability into a Qt application
(essentially, the reverse of what I have shown you in my talk a couple of
years ago), and was thinking of embedding Perl into their program as a
solution. I have two questions in the matter, as I have never tried this
particular magic Perl spell:
What kind of access will the scripts have to the proper C++ variables?
Can these be objects or have to be static ? Or is it simply madness to poke
at data that way (my take) and the best approach is to pass a data block to
a Perl function from C++, then retrieve the results from that same memory
area (or another one, but still allocated by C++).
The person badgering me with this problem seems to think it is possible
to poke at the memory space of an executable from another one (the
standalone perl interpreter) and live happily everafter. Now, I know Perl is
full of wonderous surprises, but unless it bends even standard Unix Kernel
memory protection, it seems to me the best way to go is embedding.
Should I check out other spell books other than perlembed? As far as I know,
that's the only way to go, but perhaps there are *other* ways to embed Perl
(No Dan, don't get started on Parrot juuuust yet ;-)
-Federico
_________________________________________
-- "'Problem' is a bleak word for challenge" - Richard Fish
Muad'Dib of Caladan (Federico L. Lucifredi)- [EMAIL PROTECTED],
http://www.lucifredi.com
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm