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

Re: [Xotcl] Panic in xotcl 0.9.4

From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Mon, 6 May 2002 11:21:48 +0200

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