Update of /cvsroot/nice/Nice/regtest/basic
In directory sc8-pr-cvs1:/tmp/cvs-serv11732/regtest/basic
Modified Files:
syntax.nice
Log Message:
Use {} instead of ;, since empty statements have been removed.
Index: syntax.nice
===================================================================
RCS file: /cvsroot/nice/Nice/regtest/basic/syntax.nice,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** syntax.nice 9 May 2003 15:01:46 -0000 1.8
--- syntax.nice 2 Dec 2003 20:34:43 -0000 1.9
***************
*** 7,23 ****
// While with empty body
while(false)
! ;
// For with empty body
for (;false;)
! ;
// If with empty body
if (true)
! ;
// Anonymous functions with empty body
()->void f = ()=> {};
! f = ()=> { ; };
// [] is the empty array
--- 7,23 ----
// While with empty body
while(false)
! {}
// For with empty body
for (;false;)
! {}
// If with empty body
if (true)
! {}
// Anonymous functions with empty body
()->void f = ()=> {};
! f = ()=> { {} };
// [] is the empty array
|