10-23-2017, 11:42 PM
An anonymous function will be alright. A global function will be alright as long as you know it will be defined before the registration (i.e. same file, function above registration). All other usages should be considered unsafe and avoided.