소스 검색

Lua: use instance methods for inline iterator usage

Justin Donaldson 9 년 전
부모
커밋
429112593d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      genlua.ml

+ 2 - 2
genlua.ml

@@ -709,10 +709,10 @@ and gen_expr ?(local=true) ctx e = begin
 				newline ctx;
 				name
 		) in
-		print ctx "while( %s.hasNext() ) do" it;
+		print ctx "while( %s:hasNext() ) do" it;
 		let bend = open_block ctx in
 		newline ctx;
-		print ctx "local %s = %s.next();" (ident v.v_name) it;
+		print ctx "local %s = %s:next();" (ident v.v_name) it;
 		gen_block_element ctx e;
 		bend();
 		newline ctx;