• 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.

      • @davidgro@lemmy.world
        link
        fedilink
        61 year 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

    • @sudo@programming.dev
      link
      fedilink
      31 year ago

      Its like if subroutine bar could say its going to execute at line N of routine foo. But if you were just reading foo then you’d have no clue that it would happen.

      You can simulate this effect with bad inheritance patterns.