this post was submitted on 21 Jun 2024
471 points (98.4% liked)

Programmer Humor

19678 readers
324 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
471
COMEFROM (programming.dev)
submitted 5 months ago by JPDev to c/programmer_humor
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 30 points 5 months ago (1 children)

Doesn't it steal control flow? More like a break point, except you define where execution continues.

I wonder if it's a compile error to have multiple conflicting COMEFROM statements, or if it's random, kind of like Go's select statement.

How awesome would it be to be able to steal the execution stack from arbitrary code; how much more awesome if it was indeterminate which of multiple conflicting COMEFROM frames received control! And if it included a state closure from the stolen frame?

Now I want this.

[โ€“] [email protected] 10 points 5 months ago

I wonder if it's a compile error to have multiple conflicting COMEFROM statements

I think there's at least one INTERCAL implementation where that's how you start multi-threading