3 ms·
BBC BASIC had "RENUMBER" which would renumber your lines for you if things started getting tight!
by tome 17y ago
BBC BASIC had "RENUMBER" which would renumber your lines for you if things started getting tight!
- agazso 17y agoIf I recall correctly, RENUMBER only renumbered lines, but not the GOTO and GOSUB labels, so it was pretty useless after all :) The best thing you could do was to stick to the practice of labeling by multiples of ten, and if you needed to hack something, you could still do it in one or two lines. But basically programming in BASIC was hacking :)
- tome 17y agoApparently it had quite strange semantics, presumably for ease of implementation: http://www.bbcbasic.co.uk/bbcbasic/manual/bbckey4.html#renumber http://www.bbcbasic.co.uk/bbcbasic/manual/bbckey4.html#renum...
- RiderOfGiraffes 17y ago> If I recall correctly, RENUMBER only renumbered > lines, but not the GOTO and GOSUB labels, so it > was pretty useless after all :) You remember incorrectly. I've just gone and confirmed that the labels and references are all changed. FWIW, we've had BBC BASIC programs running commercially in the field in a semi-embedded context for over ten years and they are still running perfectly. It's perfectly possible to do structured progamming in BBC BASIC.
- gjm11 17y agoIf you issued a RENUMBER command with sufficiently nonsensical parameters (you gave it, I think, the first line number and the increment), the result was the error message "Silly.", which was (1) unusually casual-sounding and (2) not mentioned anywhere in the manuals. I can still remember the brief flash of OMG-it's-alive panic that hit me when my computer first told me I was silly.