handling errors through catch
- From: "maura.monville@xxxxxxxxx" <maura.monville@xxxxxxxxx>
- Date: 27 Apr 2006 15:12:55 -0700
So far I've bothered you all trying to eliminate the folloeing error
% set mum 20000000000
20000000000
set num_pnt [expr $mum-int($mum)]
integer value too large to represent
Since the value returned, wtitten in a point-info window, is correct I
wonder whether it would be simpler just suppress such an arror message.
To this purpose I was thinking of replacing the following
error-causing statement:
set num_pnt [expr $num-int($num)]
with
catch {set num_pnt [expr $num-int($num)]}
Is it going to fail or work ?
Thank you so much.
Maura
.
- Follow-Ups:
- Re: handling errors through catch
- From: Neil Madden
- Re: handling errors through catch
- From: Cameron Laird
- Re: handling errors through catch
- Prev by Date: Re: can somebody plz. convert this TCL code into JACL?
- Next by Date: bell boing scriipt quits
- Previous by thread: New TIP published: #267
- Next by thread: Re: handling errors through catch
- Index(es):