Skip to main content
12 events
when toggle format what by license comment
S Aug 5, 2019 at 10:58 history suggested Toby Speight CC BY-SA 4.0
Markdown and spelling improvements
Aug 5, 2019 at 9:48 review Suggested edits
S Aug 5, 2019 at 10:58
Jun 11, 2019 at 14:47 comment added supercat @DewiMorgan: I'd count it as self-modifying if it restarts, but the range of what can be done would seem rather limited. It would be interesting if a version of BASIC kept a start-of-variables pointer separate from end-of-program, could leave variables undisturbed on an edit if there was adequate space for the edit, and included an EDITLINE n,"string" command to modify a line of code directly and restart the program.
Jun 10, 2019 at 23:18 history edited Dewi Morgan CC BY-SA 4.0
Clarify my uncertainty.
Jun 10, 2019 at 23:17 comment added Dewi Morgan @supercat without having one in front of me, I can't tell. I can't find anything for the Timex' BASIC which says whether it does or does not update the program counter with the editor commands. If it halts or restarts the program I agree that it likely wouldn't count as self-modifying.
Jun 10, 2019 at 19:47 comment added supercat While some versions of BASIC may include statements such as RENUM which alter the program in memory, the act of modifying a program via means other than POKE will cause most interpreters to forget what part of the code was being executed.
Jun 8, 2019 at 23:12 history edited Dewi Morgan CC BY-SA 4.0
added 51 characters in body
Jun 8, 2019 at 23:06 comment added Dewi Morgan @EricTowers Not convinced that your interpretation is the one intended, but it's certainly a valid option 5: I've edited with a suggestion from TIMEX T/S 2000 BASIC. But I've no idea if it'd work in practice.
Jun 8, 2019 at 23:04 history edited Dewi Morgan CC BY-SA 4.0
Might count?
Jun 8, 2019 at 19:04 comment added Eric Towers Regarding your conclusion: No. Lisp is an example of self-modifying, non-reloading, in-memory code. The advantage list has is that its one datatype is also its representation for code. That is, the language has high-level constructs to modify its ASTs (abstract syntax trees), however represented. As you have observed, few (perhaps no?, this being the Question) BASIC has high-level constructs to modify its ASTs.
Jun 8, 2019 at 18:50 review First posts
Jun 8, 2019 at 19:06
Jun 8, 2019 at 18:49 history answered Dewi Morgan CC BY-SA 4.0