Tables are associative containers implemented as pairs of key/value (called slot); values can be any possible type and keys any type except 'null'. Tables are squirrel's skeleton, delegation and many other features are all implemented through this type; even the environment, where global variables are stored, is a table (known as root table).
Tables are created through the table constructor (see Table constructor)
Adding a new slot in a existing table is done through the "new slot" operator '<-'; this operator behaves like a normal assignment except that if the slot does not exists it will be created.
local a={}
The following line will cause an exception because the slot named 'newslot' does not exist in the table ‘a’
a.newslot = 1234
this will succeed:
a.newslot <- 1234;
or
a[1] <- "I'm the value of the new slot";