From OpenTTD
Jump to: navigation, search
As identifiers can't start with a digit, the first character is ignored (the underscore in the example).

This isn't a good reason for ignoring the first character: tables keys are not necessary identifiers as shown in the Squirrel manual. labels could have been described like in the following example:

local labels =
	[0] = "Easy",
	[1] = "Medium",
	[2] = "Hard"

Valentin Perrelle 16:00, 30 July 2009 (UTC)

Personal tools