浏览代码

Lua : note to self about variable names

I have to come back and clean up some of these variable names later, I
think they could cause silent conflicts.
Justin Donaldson 10 年之前
父节点
当前提交
c1ca4aa553
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      genlua.ml

+ 1 - 0
genlua.ml

@@ -356,6 +356,7 @@ let rec gen_call ctx e el in_value =
 		concat ctx "," (gen_value ctx) el;
 		spr ctx ")";
 	| TField ( { eexpr = TConst(TInt _ | TFloat _| TString _| TBool _) } as e , ((FInstance _ | FAnon _) as ef)), el ->
+		(* TODO: Come up with better workaround for dealing with invoked methods on constants e.g. "foo".charAt(0); *)
 		spr ctx "(function(x) return x";
 		spr ctx ":";
 		print ctx "%s" (field_name ef);