07-11-2024, 01:54 PM
Does anyone know the history of how it came to be that "?" became a short form for "PRINT". Has it always been built into the bones of QBasic. Could have been ported over from some other language. Just curious.
|
History of the question mark
|
|
07-11-2024, 01:54 PM
Does anyone know the history of how it came to be that "?" became a short form for "PRINT". Has it always been built into the bones of QBasic. Could have been ported over from some other language. Just curious.
07-11-2024, 02:33 PM
I do know that it works in SmallBASIC but not in Just Basic (nor LB).
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
07-11-2024, 02:34 PM
I do not know an answer, but it would be funny to have more like this. Maybe | for input and § for screen.
"Give a man a program and he will be happy for a day. Teach him to program and he will be happy for the rest of his life."
07-11-2024, 02:43 PM
The "?" sign for "Print" goes back to GW-Basic. If you used the program editor you could use it to output: "?2 + 2".
The idea behind is probably that "?" stands for the question: "How much is" 2 + 2.
07-11-2024, 03:24 PM
The question mark (?) as a shortcut for the PRINT statement was first introduced in Microsoft BASIC. This feature became widely recognized and used in various implementations of Microsoft BASIC, including:
... or at least that's what ChatGPT thinks.
I knew I'd seen this before: https://retrocomputing.stackexchange.com...iate-print
Answers in the BASIC Programming group suggest "?" for PRINT was introduced in Microsoft Level-2 BASIC, while Microsoft Level-1 BASIC had the "P" abbreviation for PRINT.
07-11-2024, 08:19 PM
It would have had to have been one or two programmers who came up with it. I wonder if Kemeny or Kurtzas would know (or have tracked ) their Basic language evolution over time?
07-11-2024, 08:52 PM
In True Basic. The exclamation point begins remark. Not apostrophe.
I got this from a book: Radio Shack TRS-80 Model I allowed abbreviation of keywords. But also had to use period. Like "P." for "PRINT". "I." for "INPUT". "GOS." for "GOSUB" because "G." already taken for "GOTO".
07-11-2024, 10:45 PM
You know what a better shortcut isPRINT... oops, ? It's the one to SCREEN 0. What is it? Nothing! SCREEN 0 is the default screen! Who made it that way? God. He did so by sneaking back into the office on the 7th day.
Pete ![]() - You can't do everything in SCREEN 0, but since you can't do everything anyway, it's perfect! |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| a question about OpenGL in QB64pe: | TempodiBasic | 11 | 1,801 |
11-22-2025, 05:47 PM Last Post: TempodiBasic |
|
| Question about load pictures | Jim_001 | 4 | 510 |
10-22-2025, 06:19 AM Last Post: Unseen Machine |
|
| Test to post a new Thread + question 32 or 64 bit | Rudy M | 2 | 538 |
09-09-2025, 04:10 PM Last Post: Rudy M |
|
| Quick Question (I hope) | bplus | 3 | 697 |
02-26-2025, 01:14 AM Last Post: SMcNeill |
|
| Mix mode input of a binary open file Question! | doppler | 5 | 1,463 |
11-28-2024, 03:06 PM Last Post: Petr |
|