You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Polymorphic variants are a little bit more efficient than polymorphic
variants and we don't really need any of the features offered by
polymorphic variants. So this commit switches Ocamlua to use regular
variants.
Copy file name to clipboardexpand all lines: ocamlua.mli
+6-6
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,12 @@
19
19
typelua_state
20
20
(** An opaque datatype representing the underlying Lua state *)
21
21
22
-
typelua_value = [ `Lua_Tableoflua_table
23
-
| `Lua_Nil(** The empty value *)
24
-
| `Lua_Stringofstring
25
-
| `Lua_Numberoffloat(** The numeric type in Lua. Lua does not have a separate type for integers: all numeric values are of type float (this actually depends on the compile flags used for the Lua runtime, but this library will only compile if floats are used for Lua numbers *)
26
-
| `Lua_Booleanofbool
27
-
| `Lua_Closureoflua_closure]
22
+
typelua_value = Lua_Tableoflua_table
23
+
| Lua_Nil(** The empty value *)
24
+
| Lua_Stringofstring
25
+
| Lua_Numberoffloat(** The numeric type in Lua. Lua does not have a separate type for integers: all numeric values are of type float (this actually depends on the compile flags used for the Lua runtime, but this library will only compile if floats are used for Lua numbers *)
26
+
| Lua_Booleanofbool
27
+
| Lua_Closureoflua_closure
28
28
(** Values that can be shared between the Lua runtime and OCaml code *)
29
29
andlua_table = (lua_value*lua_value) list
30
30
(** An associative list corresponding to a Lua table. As in Lua, keys
0 commit comments