S
S
Sergey Pugovkin2016-10-26 22:29:06
phpstorm
Sergey Pugovkin, 2016-10-26 22:29:06

"Lua arrays are 1 based. This checks for array access of element 0" - what does this mean?

id = {}
id[0] = "value
"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-10-26
@Driver86

in lua, an array can have any index, even negative.
but it's customary to start at 1, and many libraries expect this.
in particular, the lua plugin for the idea highlights this as a possible error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question