[Xotcl] Panic in xotcl 0.9.4

Gustaf Neumann neumann at wu-wien.ac.at
Mon May 6 11:21:48 CEST 2002


On Monday 06 May 2002 11:16, Zoran Vasiljevic wrote:
> 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 ?

 good question. Error should be enough, esp. for people running 
 servers and sourcing xotcl files.... If i do not find after
 some deeper examination a reason against, we will change this.

 thanks
 -gustaf
>
> Cheer's
> Zoran
> _______________________________________________
> Xotcl mailing list  -  Xotcl at alice.wu-wien.ac.at
> http://alice.wu-wien.ac.at/mailman/listinfo/xotcl



More information about the Xotcl mailing list