David Toneian wrote:
> hi,
> i would like to embed a scripting language in my (planned) c++ apps.
> i've found boost.python now, and it seems to be what i need.
> nevertheless, i'm still unsure whether i can do the follwoing with
> boost.python:
[...]
> Where the python code sets a to 5 directly (something like
> foobar.a=5), calls printHelloPython(), sets the someNumber instance
> inside foobar to 1330 and then calls foobar.add(2).
> I'd expect an output of "hello python" and the returned result from
> main to be 1337.
>> so, can i manipulate the c++ instance from within a python script? if
Definitely !
Regards,
Stefan
--
...ich hab' noch einen Koffer in Berlin...