In this project, I have the following script:
But for some reason, whenever Snap! sees a “safely try” block with an empty then-if portion, it fails to ignore the error. It works fine if you put a no-op in there though.
@d016 Pinging you too, since you said that this block is unreliable.
There’s no need to ping people, especially bh. He reads every post, and he has said before that he usually ignores his notifications. Usually if other people care, they’ll see this.
No, i don’t see why it would be intended. I’ll check.
Sorry. I didn’t realize that.
IMHO c-shapes should be changed to pass an empty command ring rather than 0 when empty. That would fix this issue.
I don’t like and don’t support Error-catching, never have. This was a hack from some kid. Snap does not have first-class exceptions. I didn’t introduce any intended change, though.
You and I can argue about that later, offline. :~P
I don’t want to argue. It’s unclear to me whether this issue is a new one or was there all along.
It’s been around for ages. I’m pretty sure I ran into it back in snap 7.
okay, thank you!
For the record, I didn’t want to use error catching in my project (a modified immediate-mode GUI library), but it was my only option, lacking any apparent method of safely detecting a deleted clone sprite. Perhaps you might look into making a block that can check if a sprite is deleted or not?
Why not?
Yeah, I looked into it a while back and it came in when the blocks were converted from using JS to extension blocks.