Hi,
I am new in lua language so i want to ask something about it. I guess what it is but just make sure what it is
First; {} are this brackets represent the like array object ?
Second; while executing functions in some example codes use functionName{} insteadof functionName({}). Is it same thing or not ?
Third; again i saw in the example codes "#self.name" what is it ? why use # this character ?
And lastly any advise about difference like that from other languages ? i know as3,php,js and now learning lua
Comments
1) Yes {} are called tables in lua, but basically they are arrays.
Making indexed array
3) symbol # takes the number of elements in indexed array
Having objects and anonymous functions, and json is like tables
I've been switching a lot between these two languages recently
Only OOP in Gideros is much prettier than what JavaScript has