OpenTTD AIs and Game Scripts • Re: nasal demons in action
Transport Tycoon Forums - Index page [Unofficial]
February 28, 2026
I though this is API restriction but it's true for tables as well, IDK why the language has such restriction.
That is done for the sake of efficiency and simplicity. Efficiency - because data is not copied needlessly. Simplicity - because distinguishing 'values' and 'references' leads to pointers, moves, copy/move/reference assignments, and a plethora of other low-level problems. At this point, you might just throw away any semblance of 'scripting' and run an interpreted C, because that is what you are demanding.
Statistics: Posted by uzurpator — 28 Feb 2026 21:00
Discussion in the ATmosphere