Most probable. I'll put that code into Functions.
Is there any way to get type checking from args on f?
/ Mirar
Previous text:
2003-12-08 11:28: Subject: call_callback
void call_callback(function f,mixed ... args) { mixed err; err=catch { f(@args); return; }; werror(master()->describe_backtrace(err)); }
You should probably use master()->handle_error() instead:
void call_callback(function f,mixed ... args) { mixed err; err=catch { f(@args); return; }; if (err) master()->handle_error(err); }
/ Henrik Grubbström (Lysator)