What does REM stand for in BASIC?

拟墨画扇 提交于 2019-12-03 22:27:08

I believe it stands for "Remark", that is, a comment. From the MSDN site:

Used to include explanatory remarks in the source code of a program.

It was REMark, back in the late Steam Age (ca. 1971 or so), when I first encountered BASIC.

Most approachable book I've ever found on the language was "My Computer Likes Me (When I Speak In BASIC)", or something like that.

For extra credit and mondo greybeard rep points: BASIC is an acronym (maybe a backronym, but whatever), for Beginner's All-purpose Symbolic Instruction Code.

I hated BASIC when I first ran into it, because I learned FORTRAN IV first, and BASIC seemed incredibly primitive. It was a long time before I got comfortable with the idea that BASIC was actually a lot easier to use for the kind of casual numbercrunching it was designed to do.

It's an abbreviation for "remark", valid only at the beginning of the line (unlike vb.net), after the line number (if any).

I always thought of it as "reminder", myself, but Chris Bunch is probably right - "remark" seems more likely.

In some dialects of QBasic the following is true:

REM $STATIC
or
' $STATIC

REM $DYNAMIC
or
' $DYNAMIC

$DYNAMIC sets aside storage for arrays while the program is running.
$STATIC sets aside storage for arrays during compilation.

REM $INCLUDE: 'filespec'
      or
' $INCLUDE: 'filespec'

 filespec    The name of a BASIC program file, which can include a
             path. Use single quotation marks around filespec.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!