Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

116 Neutral

About dmail

  • Rank
    Advanced Member
  1. 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?
  2. dmail

    Clean lua stack

    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.
  3. dmail

    Why LUA Script ?

    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.
  4. dmail

    Opening up the tagging system

    So only the OP can add tags? I get a message telling me I am not authorised "invalid credentials - you cannot modify tags".
  5. dmail

    Why LUA Script ?

    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,
  6. "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![/quote] http://www.lua.org/about.html
  7. dmail

    Alternative to singleton

    No it is a code smell that could indicate the class is doing too much.
  8. dmail

    Locking Down an Application

    [color=#1C2837][size=2]Is there any way to say, limit its permissions to files in a specific folder with no access to things like installed programs and stuff like that?[/quote] [color="#1c2837"]If you really must bend over and accept their terms then why not change your way of thinking about it. Let it see what ever it wants, just give it a clean OS so there is nothing you would like to protect.
  9. dmail

    OS X question

    [color="#1C2837"]Yep your compiler does not support C++11, hence this error and some of the others. [color="#1C2837"][/quote] I posted to humor Cornstalks. [color="#1C2837"][quote [color="#1c2837"]Final gcc for 10.5.8 http://www.opensourc...42/gcc_42-5531/ [/quote] I'm not sure what to do with that link. [/quote] In that case I wil humour you. It is the "source browser" for the latest gcc version for your OS, you look at it in your browser.
  10. dmail

    OS X question

    10.6 is free? You get free updates till the next major version of which 10.5.8 is the last which officially supports PPC CPUs IIRC. [color=#1C2837][size=2]error: type_traits: No such file or directory[/quote] [color=#1C2837][size=2]Yep your compiler does not support C++11, hence this error and some of the others. [color=#1C2837][size=2] [color=#1C2837][size=2]error: ISO C++ does not support ‘long long’[/quote] [color="#1c2837"]You have a number of options here: [color="#1c2837"]Remove -Wall from the command line. [color="#1c2837"]switch to int64_t [color="#1c2837"]Use the pragma to tell g++ it is a system header and therefore be quiet about it. [color="#1c2837"] [color="#1c2837"]Final gcc for 10.5.8 http://www.opensource.apple.com/source/gcc_42/gcc_42-5531/ [color="#1c2837"]Final Xcode 3 version which run on PPC CPU, for this you need to login to apple and download Xcode 3.2.5 [color="#1c2837"] [color="#1c2837"]
  11. Firstly when ever I hear a type which has "manager" as part of it's name, my first reaction is always you are doing it wrong. It sounds like what you want it a Lua reference [1] yet you have to take into account that this reference by default will keep the object alive. [1] http://www.lua.org/manual/5.1/manual.html#luaL_ref
  12. FYI the bug report had not been acknowledged as a bug when I added that link. What I am saying is that people suggested to file a bug report and instead of wasting peoples time (as the issue was being looked at by MS) then to state this is what you did. By linking to that report if also allows potential future viewers to see what the outcome was.
  13. https://connect.micr...ember-functions Issue created on connect, it would have been nice if the OP updated the post to reflect this.
  14. There is a compiler option in Visual Studio (sorry name of it escapes me at the moment) that can remove duplicate functions, ie functions which have similar or same functionality even with different types. I would be wary (or at least check) that the template function name is not changed by this and gives incorrect information about the typename T.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!