I was surprised at the "scope" of the abort command. Given:
I would expect that this:
would never print anything. But I was surprised to find that this:
didn't print anything either. Is that just me? It seems like the opposite behavior would be useful, so you can cli_execute call scripts that might want to use abort (notably: bounty.ash) without ending execution of your master script (like breakfast.ash).
Code:
---die.ash---
void die()
{ abort();}
Code:
import<die.ash>;
die();
print("And now I'm back. I had a snack.");
Code:
cli_execute("call die.ash");
print("And now I'm back. I had a snack.");