View · Search · Index
No registered users in community xowiki
in last 10 minutes

[Xotcl] Panic in xotcl 0.9.4

From: Zoran Vasiljevic <zoran_at_archiware.com>
Date: Mon, 6 May 2002 11:16:00 +0200

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