<i>errors disappear in trace callbacks</i> status still Open with 4 other changes
by
.
D 2004-08-25T21:15:05
J icomment Logged\sIn:\sYES\s\nuser_id=372859\n\nVince,\n\nUsing\sbgerror\sreally\sonly\sworks\swell\sif\syou're\srunning\san\sapp\swith\san\s\nevent\sloop.\s\sThere\sare\slots\sof\sTcl\sapplications\sthat\sdon't,\sand\sSnit\s(my\s\nparticular\sinterest)\scan\sbe\sused\sin\sboth.\s\sSo\sI\scan't\sjust\suse\sbgerror\sto\s\nflag\serrors\sin\sSnit's\srename\strace\scallback.\n\nYou\sask\s"which\sof\sthese\stwo\sis\sit?"\s\sAm\sI\strying\sto\sdiscover\sprogramming\s\nerrors,\sor\sam\sI\strying\sto\ssignal\sconditions\sthat\sa\sprogrammer\smight\swish\s\nto\scatch?\n\nThe\sanswer\sis,\s"both".\s\sI\slike\sTcl's\serror\shandling;\sI\sreally\sdislike\shaving\s\ncode\sin\swhich\serrors\scan\soccur\ssilently.\s\sFor\sthat\sreason,\sI'm\s\nphilosophically\sagainst\sthe\scurrent\simplementation,\sas\sit's\sthe\sone\splace\s\n(that\sI'm\saware\sof)\sin\swhich\serrors\sare\signored\swithout\srecourse.\s\s\n(Bgerror\sis\snot\sa\sreal\srecourse,\sfor\sthe\sreason\sI\sstated\sabove.)\n\nBut\sin\sany\sevent,\sit's\sa\sfalse\sdichotomy.\s\sIf\sI\shave\sa\smodule\swhich--for\s\nwhatever\sreason--contains\scommands\sthat\sshould\snot\sbe\srenamed,\sit\s\nseems\sreasonable\sto\suse\sa\srename\strace\sto\scatch\sattempts\sto\srename\s\nthem,\sand\sthrow\san\serror\sif\sthey\sdo,\sjust\sas\ssome\sfolks\suse\svariable\s\ntraces\sto\scontrol\swhat\scan\sbe\sassigned\sto\sparticular\svariables.\s\sIf\serrors\s\nare\sthrown\sin\sthese\scases,\sit's\sprobably\snot\sa\s"condition\swhich\sa\s\nprogrammer\smight\swish\sto\scatch\sand\sworkaround";\sit's\sa\slogical\serror\sin\s\nthe\sprogram\sthat\shas\sto\sbe\sfixed.\n\nWill\n
J login duquette
J mimetype text/plain
J username duquette
K 652765ffffffffffffffffffffffffffffffffff
U duquette
Z cea09b21be508f55cb37441162691b65