mistranslation of "for" loop

10 views
Skip to first unread message

Mathew Yeates

unread,
Jan 18, 2008, 10:09:18 PM1/18/08
to java2pyth...@googlegroups.com
for (int i = 0; i < args.length; i++) { is being mistranslated as
i = 0
 while i < args.length:
            i += 1

the line i+=1 belongs at the end of the loop and before every "continue" statement

Mathew


Troy Melhase

unread,
May 15, 2008, 9:46:40 PM5/15/08
to java2pyth...@googlegroups.com

The i+=1 is placed correctly at the end of the loop.

I don't know about the continue, though. Seems to be a semantic
choice, not one for the translator.

Reply all
Reply to author
Forward
0 new messages