Browse Source

Lua: Add a lua.Boot command to build a simple table

Justin Donaldson 9 years ago
parent
commit
4b53702fca
1 changed files with 4 additions and 0 deletions
  1. 4 0
      std/lua/Boot.hx

+ 4 - 0
std/lua/Boot.hx

@@ -279,4 +279,8 @@ class Boot {
 			throw "Invalid date format : " + s;
 		}
 	}
+
+	public static function createTable<K,V>() : Table<K,V> {
+		return untyped __lua__("{}");
+	}
 }