{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreig5ksr6vm6re6zxb2demsu7xzc6562h5oiva2xvak3lpqwxy25aza",
"uri": "at://did:plc:i7budt2wflrcfy6jtvfocbix/app.bsky.feed.post/3mfx5x7bsxa32"
},
"path": "/viewtopic.php?p=1278321#p1278321",
"publishedAt": "2026-02-28T20:50:50.000Z",
"site": "https://www.tt-forums.net",
"tags": [
"uzurpator"
],
"textContent": "This is a fairly common approach to passing arguments in languages that don't distinguish between references and values. Essentially, every argument pass is done by reference, and if a value is needed, it has to be made explicitly. It works this way in Perl, Lua, and, apparently, squirrel. And thousands of other languages as well.\n\nYou will need to make a deep copy of the container you want a copy from, assuming you truly, actually, really want a copy. You probably don't. Making deep copies is not a straightforward problem, mostly because a generic copy-making algorithm does not know whether a given field of a complex data structure is to be copied or not. Usually, the language provides some serialization support - but using it within the specifics of a given problem is up to the programmer.\n\nStatistics: Posted by uzurpator — 28 Feb 2026 20:50\n\n* * *",
"title": "OpenTTD AIs and Game Scripts • Re: nasal demons in action",
"updatedAt": "2026-02-28T20:50:50.000Z"
}