.
D 2008-09-04T22:48:00
J assignee msofer
J cmimetype text/plain
J comment I've\sbeen\sexperimenting\swith\straces\sand\scoroutines\sas\spart\sof\sthe\sdiscussion\son\shttp://wiki.tcl.tk/21537\s(as\sto\swhy\sLars's\sproposal\sisn't\sgood\senough)\sand\sI\scame\sacross\sthis:\n\n$\smake\sshell\n%\sproc\sfoo\s{}\s{set\sv\s1;\strace\sadd\svariable\sv\s{write\sunset}\sbar;\syield;\sset\sv\s2;\syield;\sset\sv\s3}\n%\sproc\sbar\sargs\s{puts\s$args};namespace\spath\stcl::unsupported;coroutine\sa\sfoo\n%\sa\nv\s{}\swrite\n%\sa\nv\s{}\swrite\nv\s{}\sunset\n3\n%\sa\nambiguous\scommand\sname\s"a":\safter\sappend\sapply\sarray\satProcExit\sauto_execok\sauto_import\sauto_load\sauto_load_index\sauto_qualify\n%\scoroutine\sa\sfoo\n%\sa\nv\s{}\swrite\n%\srename\sa\s{}\n%\sa\nambiguous\scommand\sname\s"a":\safter\sappend\sapply\sarray\satProcExit\sauto_execok\sauto_import\sauto_load\sauto_load_index\sauto_qualify\n\nIt\swould\sbe\s*very*\snice\sif\svariable\sunset\straces\swere\srun\swhen\sa\scoroutine\sis\s"deleted\searly"\ssince\sthat\swould\smean\sthat\sthe\sassumption\sthat\sunset\straces\scould\sbe\sused\sto\shandle\sscoping\sof\sresource\slifetime\sto\sprocedure\sbody\sexecution\slifetime\swas\sguaranteed.\sAnd\sin\sa\sstrong\ssense,\sthe\svariables\sare\sunset\swhen\sthe\screated\scoroutine\sis\sdeleted.\n\nThere's\sprobably\salso\sa\srelated\sissue\swith\stailcall\snot\scalling\sunset\straces\son\slocal\svariables,\sbut\sI've\snot\schecked.\s;-)\n\nI'm\ssorry\sthese\sthings\smake\sstuff\smessier.\sResolving\sthem\swould,\sI\sthink,\sgo\sa\slong\sway\stowards\smaking\sthe\sNRE\sstuff\sfit\sto\scome\sout\sof\sthe\stcl::unsupported\scloset.
J foundin obsolete:\s8.6a3
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dkf
J subsystem None
J title coroutine+unset\strace\smisfeature
J type Bug
K 2093947fffffffffffffffffffffffffffffffff
U dkf
Z 9cabb92f840449137e6af0d4debdec36