Comments on: Lua elevator pitch (for very high buildings) If anyone reading this decides to have a look at lua, I highly recommend Lua Plus, found here: http://luaplus.org/ It really simplifies passing data to and from your c++ engine and the lua virtual machine. Registering functions in C++ to be called from Lua and vice versa, without the need to worry about passing stacks around is a god send! Great article :) If anyone reading this decides to have a look at lua, I highly recommend Lua Plus, found here:
Dear Fabrice. I like your colour scheme. On the off chance that you are using an editor I use, would you mind sending it this way? Dear Fabrice. I like your colour scheme. On the off chance that you are using an editor I use, would you mind sending it this way?

]]>
By: Carlos Curran/2011/02/19/lua-elevator-pitch-for-very-high-buildings/#comment-1143 Carlos Curran Tue, 01 Mar 2011 23:08:08 +0000 Indeed, but coming from C this can be very surprising, hence the "gotcha" :) Indeed, but coming from C this can be very surprising, hence the “gotcha” :)

]]>
By: Fabrice Lété/2011/02/19/lua-elevator-pitch-for-very-high-buildings/#comment-910 Fabrice Lété Mon, 21 Feb 2011 20:18:34 +0000 "•By default, everything has global scope, even variables defined within functions." Whilst this is true, you should really be using the local keyword to keep variables restricted to the scope they are defined in. http://lua-users.org/wiki/ScopeTutorial “•By default, everything has global scope, even variables defined within functions.”

Whilst this is true, you should really be using the local keyword to keep variables restricted to the scope they are defined in.

"good ol’ ANSI C code (without any dependency)" Actually it is not written in ANSI C instead it is in clean C code and it can have dependencies depending on the platform for example POSIX requires readline. Can I ask that you change the code from using an old comptibilty macro "lua_open" to a correct function which is either luaL_newstate or lua_newstate. lua_open has been removed from Lua 5.2 by default and it would be nice to future proof the article if possible. Thanks “good ol’ ANSI C code (without any dependency)” Actually it is not written in ANSI C instead it is in clean C code and it can have dependencies depending on the platform for example POSIX requires readline.

Can I ask that you change the code from using an old comptibilty macro “lua_open” to a correct function which is either luaL_newstate or lua_newstate. lua_open has been removed from Lua 5.2 by default and it would be nice to future proof the article if possible.

Thanks

]]>
By: Fabrice Lété/2011/02/19/lua-elevator-pitch-for-very-high-buildings/#comment-886 Fabrice Lété Sun, 20 Feb 2011 10:07:00 +0000 Everyone's bragging about their tools now... :D Scripting is all nice and fast but I'd like to see both sides of the coin, so to speak. Maybe someone could write a blog post about the biggest problems of scripting to keep the balance. :P Everyone’s bragging about their tools now… :D
Scripting is all nice and fast but I’d like to see both sides of the coin, so to speak.
Maybe someone could write a blog post about the biggest problems of scripting to keep the balance. :P

]]>
By: Koko/2011/02/19/lua-elevator-pitch-for-very-high-buildings/#comment-882 Koko Sat, 19 Feb 2011 18:30:50 +0000 That's a blog post I would love to read, please write it! That’s a blog post I would love to read, please write it!

]]>
By: Tweets that mention Lua elevator pitch (for very high buildings) » #AltDevBlogADay -- Topsy.com/2011/02/19/lua-elevator-pitch-for-very-high-buildings/#comment-878 Tweets that mention Lua elevator pitch (for very high buildings) » #AltDevBlogADay -- Topsy.com Sat, 19 Feb 2011 14:46:35 +0000 [...]

]]>
By: Matt D/2011/02/19/lua-elevator-pitch-for-very-high-buildings/#comment-877 Matt D Sat, 19 Feb 2011 14:44:36 +0000