From: <no...@so...> - 2001-07-09 21:03:20
|
Bugs item #439843, was opened at 2001-07-09 14:03 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=439843&group_id=10894 Category: None Group: 8.3.3 Status: Open Resolution: None Priority: 5 Submitted By: Jean-Sebastien Trottier (jstrot) Assigned to: Nobody/Anonymous (nobody) Summary: crash when getting the return value of b Initial Comment: Tcl Version: ActiveTcl v8.3.3 OS: Windows 2000 Pro SP2 Problem Behaviour: The following code causes a crash: namespace eval ::crashTcl { while {1} { set b [break] } } I know it doesn't make sense to take the return value of break... This is the simplified version of one of my scripts that calls a procedure (instead of break) which could return a value or force a break (return - code break) It doesn't happen if the whole thing is not with a namespace eval. this piece of code crashes with: TclExecuteByteCode: done instruction at pc 14: stack top 0 != entry stack top -1 TclExecuteByteCode execution failure: end stack top != start stack top Expected Behaviour: b should not be assigned any value break should work as expected, breaking out of the while ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=439843&group_id=10894 |