#Question about static functions

5 messages · Page 1 of 1 (latest)

dark dagger
#

Is there a way for a static function to call a function on all of it's instances?

untold isle
#

static functions are, by definition, independant from class instances

#

could you explain a bit more about what you're trying to do

worldly bluff
#

if you are in 4.1, you could have a static variable that all instances add themselves to. the static function could then loop through that and call a function on all of them

wet glacier