| dialect_name$ - name of dialect to use in quotes: "classic", "secure" or "modern". |
|
Sets the Blitz3D dialect for the source code file it appears in. Must appear at the top of file before any other commands, and does not affect any included files. Each file must declare its own dialect. dialect_name must be one of: • "classic" The original dialect of Blitz3D. This is the default dialect used if no dialect is specified. • "secure" The "secure" dialect is based on "classic" but with the added restriction that identifiers used in expressions must be declared somewhere before they are used or a compile time error will occur. • "modern" The "modern" dialect is based on "secure", but with more familiar syntax for modern programmers: The '.' token used to specify variable type is changed to ':', and the '\' token used to access object fields is changed to '.'. Variables that appear in assignments and in For loops are still created 'on demand' if they don't exist in a similar way to python. |
; Dialect Example ; --------------- Dialect "modern" Type Block Field id End Type ; In modern dialect, use ':' to declare object type instead of '.' block:Block = New Block ; In modern dialect, use '.' to access fields instead of '\' block.id=100 |