Const and enum are introduced with the latest Squirrel version, which we don't use. This is mostly because we have modified Squirrel quiet a bit. When I have the time, and feel like it, I might sync both versions, but the latest version introduces such few useful things, that it will take a whilekuifware wrote:Are const and enum statements supported in Squirrel code? The Squirrel language manual describes these statements, but OpenTTD gives me a compile error ('Your script made an error: end of statement expected (; or lf)'). (..)

Currently I am also researching the option to create our own language (which will use almost the same language as Squirrel (and C++ for that matter)). This because Squirrel, code-wise, sucks big-time. Completely unreadable, lack of documentation, lack of coding style, and therefor it is really hard for a non-Squirrel-developer to modify anything. But... this is just research, nothing real
