Nice/src/bossa/syntax loop.nice,1.12,1.13

Daniel Bonniot <[email protected]>
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17388/src/bossa/syntax

Modified Files:
	loop.nice 
Log Message:
Replaced 'new LinkedList([...])' with '[...]'


Index: loop.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/loop.nice,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** loop.nice	22 Feb 2005 10:27:07 -0000	1.12
--- loop.nice	22 Feb 2005 13:00:20 -0000	1.13
***************
*** 133,137 ****
  	loc: loc, nullness: /*sure*/2);
  
!   let getiter = createCallExp(createIdentExp(new LocatedString("forIterator", loc)), container); 
    let iter = new LocatedString(loc.uniqueIdentifier("for_in_iter_"), loc);
    let init = new LocalVariable(iter, itertype, true, getiter);
--- 133,137 ----
  	loc: loc, nullness: /*sure*/2);
  
!   let getiter = createCallExp(createIdentExp(new LocatedString("forIterator", loc)), container);
    let iter = new LocatedString(loc.uniqueIdentifier("for_in_iter_"), loc);
    let init = new LocalVariable(iter, itertype, true, getiter);
***************
*** 140,146 ****
    let getvar = createCallExp(createIdentExp(new LocatedString("next", loc)), iterexp);
    let assign = new LocalVariable(varName, vartype, true, getvar);
!   let loop = new LoopStmt(whileExp: cond, loopBody: createBlock(new LinkedList([assign, body])), testFirst: true);
!   return createBlock(new LinkedList([init, loop]));
  
  }
  
--- 140,146 ----
    let getvar = createCallExp(createIdentExp(new LocatedString("next", loc)), iterexp);
    let assign = new LocalVariable(varName, vartype, true, getvar);
!   let loop = new LoopStmt(whileExp: cond, loopBody: createBlock([assign, body]), testFirst: true);
  
+   return createBlock([init, loop]);
  }
  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.