<p></p>
<p>I'm closing this, because there's no specific problem mentioned. The original bug was that <code>scriptret</code> wasn't zeroed out, causing garbage return values, and that's fixed.</p>
<p>A lot of commands (fewer than 15 years ago) have poor error checking, but they're not failing, they're doing something, and that's a different problem.</p>
<p>Having given this another decade of thought, I still like the idea of returning "weak types" from a lot of commands: objects that convert implicitly into integers, but can also store extra information like success/failure. Eg<br>
<code>success(find hero(hero:bob)))</code><br>
equivalent to<br>
<code>find hero(hero: bob) <> -1</code><br>
and<br>
<code>success(npc reference(3, 2))</code><br>
equivalent to<br>
<code>npc reference(3, 2) <> 0</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1049#issuecomment-600496552">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZV5ST4WM7BLPPWB3RTRICDDLANCNFSM4LOLL7NQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZWXKRA2SCBU773SFCLRICDDLA5CNFSM4LOLL7N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEPFNTKA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1049#issuecomment-600496552",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1049#issuecomment-600496552",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>