[Xotcl] Panic in xotcl 0.9.4
Zoran Vasiljevic
zoran at archiware.com
Mon May 6 11:16:00 CEST 2002
int
XOTclSelfDispatchCmd(ClientData cd, Tcl_Interp *in, int objc, Tcl_Obj *CONST objv[]) {
XOTclObject *self;
int result;
if ((self = GetSelfObj(in))) {
result = callMethod((ClientData)self, in, objv[1], objc, objv+2, 0);
} else {
result = TCL_ERROR;
panic("Self Dispatch: could not resolve self"); /** Urks !? **/
}
return result;
}
Do we need to trigger panic (i.e. crash program) when self cannot be
resolved ? Or is is sufficient just to return error ?
Cheer's
Zoran
More information about the Xotcl
mailing list