13

Just bought the Lua book

I am such a fanboy it absolutely HURTS

Comments
  • 2
    @jespersh Lua doesn't have arrays
  • 5
    @AlgoRythm lua tables start from 1.
  • 2
  • 1
    Lua is Delphi in small
  • 0
    Love Lua and its tables...

    But I don't find a good use case... Any suggestions?
  • 1
    @CozyPlanes Lua is great for extending C/C++ programs. Apart from that it has little use.

    Still, it's a great read, offering many interesting concepts. Like functions return more than one value.

    Btw. In my copy of the Lua book, it is "arrays".
    Didn't know they were renamed.
  • 0
    @Yamakuzure too bad I never learnt c and c++
  • 1
    @Yamakuzure Take a look in that section, it should say that arrays are implemented as tables with an integer key.

    They have a section called arrays for people who are looking for them.
  • 1
    @AlgoRythm I am at home now, and realize that I got "Beginning Lua Programming", written by Kurt Jung and Aaron Brown from 2007.

    And chapter 4 is "Working with Tables"
    Wow!
    4.4 is "Tables as Arrays"

    My memory totally failed me here! 🤔
  • 1
    @Yamakuzure I'm excited for my book. Should get it tomorrow.

    I sort of wanna specialize in Lua. Since not many people seem to, it may be a coveted skill.

    Algo the Lua man.
Add Comment