Of course we will meet tricky cases, but I don't think these three be.
What do you means "Modifying variables from the other language"? I think using P{} to modify pike variable and using C{} to modify C variables is enough.
All pike things can be accessed from C through lambda functions. Maybe I should allow pass object point to C side, not sure.
"global storage in C" can be accessed as follow:
C.INCLUDE("extern int some_global_c_variable;"); C.CC("gcc -shared come_sofile_include_the_variable_define.so");
see the attachement.
----- Original Message ----- From: "Martin Stjernholm, Roxen IS @ Pike developers forum" 10353@lyskom.lysator.liu.se To: pike-devel@lists.lysator.liu.se Sent: Tuesday, May 06, 2008 4:10 AM Subject: Re: Spear !
Ok. I guess there'll be some tricky cases: Modifying variables from the other language, class scope access from C, global storage in C.. What are you going to use it for?