Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv13812/src/bossa/syntax
Modified Files:
analyse.nice
Log Message:
Only capture variables when they are assigned to.
Index: analyse.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/analyse.nice,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -d -r1.87 -r1.88
*** analyse.nice 24 Nov 2003 19:22:02 -0000 1.87
--- analyse.nice 24 Nov 2003 20:49:42 -0000 1.88
***************
*** 437,441 ****
if (sym instanceof MonoSymbol)
{
! if (sym.depth < info.anonFunDepth)
sym.captured = true;
--- 437,441 ----
if (sym instanceof MonoSymbol)
{
! if (assigned && sym.depth < info.anonFunDepth)
sym.captured = true;
|