Changeset 5004:202e72e3dba2 in livinglogic.python.xist

Show
Ignore:
Timestamp:
09/28/12 17:05:29 (6 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Update Java code for for loop.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/ul4c.py

    r5002 r5004  
    792792        v.append("{}{{\n".format(indent*"\t")) 
    793793        indent += 1 
    794         v.append("{}com.livinglogic.ul4.{}.unpackLoopVariable(context, iter{:x}.next(), {});\n".format(indent*"\t", self.__class__.__name__, id(self), self._javavarnames())) 
     794        v.append("{}com.livinglogic.ul4.For.unpackVariable(context, {}, iter{:x}.next());\n".format(indent*"\t", misc.javaexpr(self.varnames), id(self))) 
    795795        v.append("{}try\n".format(indent*"\t")) 
    796796        v.append("{}{{\n".format(indent*"\t"))