User talk:Taneb/Sacramento Wormhole

From Esolang
Jump to navigation Jump to search

Range beyond end of file behaviour

Is it considered an error to specify a range that extends beyond the end of the file?

I think it should be.

eg:

   1: delete 2..9
   2: this program tries to delete past the end of the program
   3: because the program ends at line four
   4: but the delete goes to line 9. Perhaps the delete should cause an error.
I agree. Also, you can sign messages on talk pages with "--~~~~". --Taneb (talk) 00:21, 6 May 2017 (UTC)
Obviously the lines past the end are in Sacramento hth --Ørjan (talk) 12:42, 6 May 2017 (UTC)

PDA

The syntax isn't yet fully specified, but if ranges and numbers are constants, then I don't think this can be more than a push-down automaton, because there's a limit to how far out you can modify. (Also, if the IP goes past that point, you're doomed to halt.) --Ørjan (talk) 13:01, 6 May 2017 (UTC)

This isn't necessarily the case. You can construct new lines by appending a number to a line containing, for example, delete to get a computed range or number. --Taneb (talk) 13:39, 6 May 2017 (UTC)