Commits

mweber1488 committed 313b796

Cleaned up the grammar for README.txt and changed some of the language to make it more correct.

  • Participants
  • Parent commits 7c88e4b

Comments (0)

Files changed (1)

 DerelictLua by Michael Weber, Jr.
 
-This project is Lua (www.lua.org) bindings to the Derelict2 project (www.dsource.org/projects/derelict).
-This project only supports Lua 5.2 and a D2 compiler.
+This project is bindings to the Lua programming language (www.lua.org) using the Derelict2 
+project (www.dsource.org/projects/derelict). This project only supports Lua 5.2 and a D2 compiler.
 
 Currently this project only targets windows. If someone comes up with code for other
 operating systems, I will be glad to include it.
 time do not compile DerelictLua or any code that links to it with -O.
 
 derelict\lua\luad.d must imported on its own and needs some explaining. 
-The other projects in Derelict do very little to clean up the interface between C and D 
+The other bindings in Derelict do very little to clean up the interface between C and D 
 by design. For this project I felt that Lua has a number functions that all do the same 
 basic thing but for different types and would benefit from the ability to group them into 
 one function to call. In that light luad.d defines the following functions: 
-These functions all evalutate there parameters at compile time
+These functions all evalutate their parameters at compile time
 
 bool lua_is(T)(lua_State*, int)
 This function overloads the lua_is*(lua_State*, int) functions.
 e.g. auto x = lua_to!int(lua_state, -1); // returns the top of the stack as an int
 
 void lua_push(T)(lua_State*, T)
-This function overloads the lua_to*(lua_State*, int) functions.
+This function overloads the lua_push*(lua_State*, int) functions.
 e.g. lua_push!int(lua_state, 20);
 Only lua_tostring is supporeted from the string facilities as lua_push!string
-Some of the push functions return pointers to the data, this function discards that
+Some of the push functions return pointers to the data, this function discards them
 
 void lua_push(T)(lua_State*)
 Overload of the previous function for lua_pushthread and lua_pushnil
 void lua_push(T)(lua_State*, T, int)
 Overload of the previous function for lua_pushcclosure
 
-In order to support the above functions, luad.d defines to following aliases:
+In order to support the above functions, luad.d defines the following aliases:
 alias lua_State* lua_Thread; // Note that this is already a pointer type and that "lua_Thread* thread" is wrong
 alias void* lua_Function;
 alias void* lua_Table;