Python is way more modular than I though!
Posted by Gasten on May 22, 2008
>>> def myFunc(): ... print "myFunc prints!" ... >>> def execFunc(function): ... function() ... >>> execFunc(myFunc) myFunc prints! >>>
Posted by Gasten on May 22, 2008
>>> def myFunc(): ... print "myFunc prints!" ... >>> def execFunc(function): ... function() ... >>> execFunc(myFunc) myFunc prints! >>>
nitro2k01 said
Yup… You can also do similar stuff in Javascript. (Sorry for the off-topicness)