Stephen R. van den Berg wrote:
PIKEFUN array decodedatarow(int msglen, object portal) {
class portal { int a; int b; };
After digging through the Pike sources, the best I can come up with is something like:
safe_apply(portal,"a",0);
But that doesn't seem right, and it also doesn't tell me how to handle things like: portal->a += 7; from within the cmod function.
I get the impression that in none of the existing C(MOD)-modules this is attempted (I see lots of calls to methods of other classes, but no references to variables), so I'm missing an example here.