14

Beside REM Extended BASIC uses the apostrophe for comments, what was the earliest reference?

TI Extended BASIC uses the exclamation mark, is there any standard?

6
  • 3
    I would say REM is the only standardised keyword for comments and even then it's not a standard in the sense that the C language has standards. Commented Aug 20, 2024 at 10:52
  • 3
    @AlanB - Well, there is ANSI X3.60-1978, Minimal BASIC, which basically (!) standardizes Dartmouth BASIC. Commented Aug 20, 2024 at 12:17
  • 1
    Oric basic uses tick (') Commented Aug 20, 2024 at 12:56
  • 3
    What implementation do you mean by your first mention of 'extended BASIC' in the question ? Commented Aug 20, 2024 at 14:36
  • Out of sheer curiosity, why do you ask? Commented Aug 21, 2024 at 20:59

2 Answers 2

27

The apostrophe as a comment marker appeared in Dartmouth BASIC v4 of 1968.

See page 52 (original page numbering) of reference.

Tymshare SUPER BASIC of the same year introduced !. I was unaware anyone else had used it.

6
  • 2
    If the main thrust of the question is "what was the earliest..." then this is surely the answer. Commented Aug 20, 2024 at 18:57
  • 2
    DEC BASIC-PLUS for the PDP-11 and DG's Extended BASIC for the Nova both allowed ! remark statements. Much later, Frank Ostrowski's GFA BASIC for the Atari ST also allowed this style of comment. The editor may have replaced blank lines with exclamation marks, as blank lines weren't allowed in GFA BASIC. Commented Aug 20, 2024 at 21:05
  • Sure, but RSTS-11 was a 1970s OS, so not the earliest example. Commented Aug 20, 2024 at 21:40
  • +1 I just checked my hardcopy of the previous (1 January 1966) version of this manual, and, sure enough, "REM" is documented, but not the apostrophe. FWIW, the very first ever BASIC program ran on May 1, 1964. Search YouTube for "The Birth of BASIC" to learn the history from many of the people who were there. Commented Aug 21, 2024 at 1:55
  • @dave - I was mostly responding to Maury's "I was unaware anyone else had used it." Commented Aug 21, 2024 at 15:54
15

Is there a standard? Yes, there are two.

ANSI X3.60-1978, also ECMA-55, Minimal BASIC, allows only REM. REM of course is a statement in its own right.

ANSI X3.113-1987 also ECMA-116, Full BASIC, not commonly implemented, allows REM and '!'. The latter is a 'tail comment', allowed on the same physical line as other statements.

Any other remark indicators are implementation-specific extensions to the standardized language(s).

5
  • 1
    The ANSI/ECMA standards may have been attempts at a de jure standard, but the Minimal BASIC standard was a little too minimal and a little too late to set standard usage. ANSI Full BASIC was entirely irrelevant by the time the standard came out. Demonstrating Minimal BASIC compatibility was helpful to show (US) Federal Information Processing Standard (FIPS) compliance, however, and Microsoft BASIC-80 claimed it was compliant in its manual Commented Aug 20, 2024 at 21:13
  • 3
    Nevertheless, a standard is a standard, even if it is ratified in the forest when no-one is around to hear it fall. Commented Aug 20, 2024 at 21:38
  • Relevant links: ecma-international.org/publications-and-standards/standards/… and ecma-international.org/publications-and-standards/standards/… Commented Aug 21, 2024 at 8:55
  • 3
    "Any other remark indicators are implementation-specific extensions to the standardized language(s)." At least to me it seems pretty silly to call something an extension to a standard, when (in the vast majority of cases) the standard didn't exist yet when the "extension" was written. Commented Aug 21, 2024 at 15:15
  • Fair enough. But then most of them were extensions to BASIC as defined by its inventors. Commented Aug 21, 2024 at 22:58

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.