From: Twylite <tw...@cr...> - 2008-12-12 14:11:36
|
Hi, > Is "Option #2a" implementable, and will we need one or two dashes > per (forwarding) handler? > The most likely implementation is a check that varslist must be {} if body is "-". e.g. try { ... } on break {} - on continue {em opts} { ...handler for break and continue, gets em+opts... } I could allow varslist to be {} or "-" in such a case -- it's prettier, but "-" is in fact a valid varslist (assigns the result to the local variable "-"). e.g. try { ... } on break - - on continue {em opts} { ...handler for break and continue, gets em+opts... } > PS: I'm nevertheless looking forward for an optional "as" clause > in hopefully not-too-far future. > I'm hoping to put the Tcl implementation into tcllib (possible in the control package), giving [try] functionality to Tcl 8.5. This will then be an appropriate place to experiment with new features (like 'as'). From there I imagine they may be TIPped into the core. Regards, Twylite |