[DGD] static variables and functions

Erwin Harte harte at xs4all.nl
Sat Feb 9 15:47:03 CET 2002


On Sat, Feb 09, 2002 at 02:44:40PM +0000, soja at softhome.net wrote:
> 
> Hi !
> I have a question about static keyword.
> When a variable is static, it means it won't be saved
> by save_object, right?  But what does it mean when a
> function is static?
> 
> As in:
> static void foo();

A static function cannot be called from objects other than
this_object() itself, but it _can_ be called from code that inherits
the object it was written in.

Erwin.
-- 
Erwin Harte <harte at xs4all.nl>
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list