lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Greetings,

 

I’ve been reading chapter 29 of Programming in Lua 3ed.  I understand everything from the beginning of the chapter through 29.1 except for one thing.  How does Lua get the function name “array”?  I understand how the library array works for registering the functions “new”, “set”, etc, but when the text shows the line “a = array.new(1000), how does the label “array” get associated with the library?

 

I’m sure there must be a simple answer, it’s just alluding me.

 

Thanks,

 

Rick