direct eval [for], [if], [while] not NRE safe
Closed / Fixed2823276fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-07-17 19:45:59
% coroutine foo apply {{} {set for for; $for {[yield]} 0 {} {}}}
cannot yield: C stack busy
dkfplain2009-07-18 20:46:02
Should be possible to make it yield-safe in the first, third and fourth arguments with only minimal effort. The second argument would require the same techniques as Bug#2823282.
dgpplain2009-08-13 00:02:53
Commands [for], [if], [while] all call Tcl_ExprBooleanObj() to evaluate expressions. Should migrate to Tcl_NRExprObj() to NR-enable them.
dkfplain2009-08-19 21:33:39
[for] (and [while]) now converted to be [yield]-safe in all arguments.
dkfplain2009-08-20 06:24:19
allow_comments - 1 [if] now converted.
Log in (anonymous is fine) to add a comment.