[DGD] call_other() and static functions

Petter Nyström md1pette at mdstud.chalmers.se
Mon Nov 28 21:25:01 CET 2005


Hello!

I sit a bit puzzled here, supposing I am missing something but can't 
figure out what. The problem I have is that a call on the form:

 	call_other(this_object(), "trim", " foo ");

is returning nil. (It never gets called). I make this call from my auto 
program, and the trim() function is defined as:

 	static nomask string trim (string str) { ... }

also in the auto program. Reading the documentation I don't see why this 
shouldn't work. Am I misunderstanding something? Or must perhaps something 
else I do be wrong? Removing the static modifier from the trim() function 
solves the problem, but I rather liked having most functions in the auto 
object being static.

If anyone's got a clue, please let me know. I might be missing something 
obvious.

Cheers,

Jimorie



More information about the DGD mailing list