Jump to content

  • Log In with Google      Sign In   
  • Create Account

djofdifjpodjfpodkpofdpofpd

Member Since 02 May 2006
Offline Last Active May 12 2012 05:37 AM

Posts I've Made

In Topic: Reputation++ for logging in? Really?

12 May 2012 - 05:31 AM

I think in general people are pretty good about contributing in a positive way to a community when they realize the greater good. Wikis \ open source thrive on that idea.


Ok this is the last time I intend to log in, I have no need for epenis points.
I just wanted to ask is the gamedev wiki an example of this? You know the one which tore another community apart?

In Topic: Clean lua stack

09 May 2012 - 05:53 AM

If you are determining that the stack is not empty via the return value of lua_gc then you are mistaken. The stack is not the only place when memory is used and a separate stack space is given to each C function which Lua calls, for instance there is _G the global table or _ENV the environment table in 5.2 (of which there can be many) and also the registry. Added to this a variable which is on the stack and also stored in another place will not be collected.

Rest assured your stack is empty and after such a time that there are no more references to the data, without you doing a gc (never mind 10), the memory will be released.

In Topic: Why LUA Script ?

11 April 2012 - 04:53 AM

the downvote button is for not agreeing with someones opinion.


Congratulations, you have earned the award of being downvoted by me again.
Grow up, I sent the private message to explain the reason and to tell you it was me that downvoted you please do not use private messages to insult me.

In Topic: Why LUA Script ?

10 April 2012 - 07:12 PM

Oh, and the documentation isn't always that helpful, for instance, lua_pcall(L, NumArgs, numRet, 0) when I first started using it I had my numArgs being the number of arguments the function needed, the documentation didn't specify specifically that the function call was also an argument, so it was failing on me. The documentation wasn't wrong, it just wasn't helpful enough for an impatient tiered student as of myself find understand it how it was meant to be.

Take no notice of this, Lua's documentation is excellent.

falconmick maybe you should read the documentation next time it clearly tells you the protocol as lua_pcall links to lua_call

As people are mentioning the speed of Lua compared to C and C++, if this does become a problem you can always you use the excellent and blazingly fast LuaJIT which supports quite a lot of platforms now with speed being the same or close to C code.


edit: I just can not let it go :) The Language's name is Lua not LUA,

In Topic: Pointer from C++ to Lua/Tolua++ as an argument.

20 March 2012 - 05:49 PM

"Lua" (pronounced LOO-ah) means "Moon" in Portuguese. As such, it is neither an acronym nor an abbreviation, but a noun. More specifically, "Lua" is a name, the name of the Earth's moon and the name of the language. Like most names, it should be written in lower case with an initial capital, that is, "Lua". Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with different meanings for different people. So, please, write "Lua" right!

http://www.lua.org/about.html

PARTNERS