r/ProgrammingLanguages • u/richpl • Oct 05 '21
An old school BASIC interpreter - reposted from retrocomputing
/r/retrocomputing/comments/q21w12/an_old_school_basic_interpreter/
13
Upvotes
r/ProgrammingLanguages • u/richpl • Oct 05 '21
View all comments
Show parent comment
2
u/ThomasMertes Oct 07 '21 edited Oct 07 '21
There is a page about repeating a string at Rosetta Code. None of the BASIC examples uses
*for string multiplication. In almost all BASIC examples a loop is used. In some BASIC examples there is a function for string multiplication:STRING$(5, "ha")REPEAT$(5, "ha")RPT$("ha", 5)Other (non-BASIC) languages support
*for string multiplication:5 * "ha"5 * "ha""ha" * 5"ha" * 5"ha" * 5'ha' * 5"ha" * 3'"ha" * 5'ha'*5"ha" * 5"ha" * 5"ha"*5"ha" * 5"ha" * 5"ha" * 5"ha" * 5'ha' * 5"ha" * 5"ha" * 5By the way: Seed7 has
"ha" mult 5:-)