Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Arrays : array

Syntax

#(array,%array)
#(array,%array,%value,...)

%array is the name of the array being defined. %value is the value of the first slot in the array. ... means that you can specify as many values as you want for initializing the array.

A new array will be created with the specified name. If an object with the specified name already exists, it will be freed before the new array is created.

An array contains objects named by integers. The integers do not need to be consecutive.

Example

#(array,an-array)

#(def,an-array.1,a-string)

#(an-array.1)
a-string
#(def,an-array.100,another-string)

#(an-array.100)
another-string
#(array,an-array,abc,def,ghi,jkl,mno)

#(an-array.3)
ghi