Skip to content
Tcl Source Code Artifact [3a3e1fabad]
Login

Artifact [3a3e1fabad]

Artifact 3a3e1fabad1decba4e5d1b576164c4f1c496aaa2:

Ticket change [3a3e1fabad] - New ticket [219268ffffffffff|219268ffff] <i>Catching errors at [vwait] instead of [bgerror]</i>. by nobody on 2000-10-26 05:09:39.
D 2000-10-26T05:09:39
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1347\sRFE\nVersion:\s8.0.4\nSubmitDate:\s'1999-03-02'\nLastModified:\s'1999-03-02'\nSeverity:\sSER\nStatus:\sUnAssn\nSubmitter:\spat\nChangedBy:\spat\nOS:\sOther\nOSVersion:\sAll\sOSes\nMachine:\sNA\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nAlexandre\sFERRIEUX\n\nDesiredBehavior:\nCurrently,\swhen\san\serror\soccurs\sin\san\sevent/after\shandler,\sit\sis\shandled\nby\sthe\sbgerror\smechanism:\sthe\sinfo\sabout\serror\sis\ssaved,\sand\san\s[after\nidle]\nis\sposted\sto\spop\sup\san\serror\sdialog\slater.\sNote\sthat\sall\sthis\sdoesn't\ninterrupt\nthe\ssurrounding\s[vwait].\sThis\sis\sfine\sfor\snormal\swish\sapps\susing\sthe\nimplicit\s\nTk\sevent\sloop\n\nIn\smore\scomplex\ssituations,\sthe\s[vwait]\sis\scalled\sby\sthe\sprogrammer,\sand\nit\s\nwould\sbe\spreferable\sthat\sthe\serrors\sbe\sraised\ssynchronously,\si.e.\sthey\ninterrupt\s\nthe\svwait.\sThis\sway\sa\s[catch]\sof\sthe\svwait\swill\sdo\sthe\sright\sthing.\sFor\nbackward\s\ncompatibility,\sthis\snew\sbehavior\scould\sbe\sactivated\sby\san\soption\s[vwait\s\n-errors],\sor\sby\sa\sglobal\svariable\s[set\s::tcl_vwait_errors\s1].\n\nOf\scourse,\sa\sworkaround\scurrently\sexists,\sbut\sit\sis\sinelegant\sand\ninefficient:\n\nproc\sbgerror\ss\s{set\s::_bgerror_var\sBGERROR:$s}\nproc\svwait_e\svvar\s{\nupvar\s#0\s$vvar\s::_bgerror_var\nvwait\s::_bgerror_var\nif\s{[regexp\s{^BGERROR:(.*)$}\s$::_bgerror_var\spipo\sres]}\s{error\s$res}\nreturn\s$::_bgerror_var\n}\n(The\sproblem\swith\sthis\sis\sthat\sif\syou\sdon;t\swant\sto\swipe\sout\san\salready\ndefined\s\nbgerror,\syou\shave\sto\sswitch\sit\sback\sand\sforth\swith\s[rename].\sIf\syou\shave\nto\sdo\s\nthis\sfrequently,\sthe\sperformance\sis\sterrible.)\n\n\n\n\n\n\n
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Catching\serrors\sat\s[vwait]\sinstead\sof\s[bgerror]
J type RFE
K 219268ffffffffffffffffffffffffffffffffff
U nobody
Z 5b2ba7d88dcae7845c11a83ea4d71226