REM 在 BASIC 中代表什么?

发布于 2024-08-02 10:16:16 字数 53 浏览 6 评论 0原文

这是过去的爆炸:注释标记“REM”在 BASIC 中代表什么?这个不明显的术语的起源是什么?

Here's a blast from the past: what does "REM", the comment marker, stand for in BASIC? What's the origin of this non-obvious term?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

夏末的微笑 2024-08-09 10:16:16

我认为它代表“Remark”,即评论。来自 MSDN 站点

用于在中包含解释性注释
程序的源代码。

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.

追我者格杀勿论 2024-08-09 10:16:16

早在 Steam 时代后期(大约 1971 年左右),我第一次接触 BASIC 时就是 REMark。

我发现的关于该语言的最平易近人的书是“我的计算机喜欢我(当我用 BASIC 说话时)”或类似的书。

对于额外的学分和 mondo greybeard 代表点:BASIC 是一个首字母缩略词(可能是反义词,但无论如何),代表初学者的通用符号指令代码。

当我第一次接触 BASIC 时,我讨厌它,因为我先学了 FORTRAN IV,而 BASIC 看起来非常原始。过了很长一段时间,我才接受了这样一个想法:BASIC 实际上更容易用于其设计目的的那种随意的数字运算。

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.

挽清梦 2024-08-09 10:16:16

它是“remark”的缩写,仅在行首(与 vb.net 不同)、行号(如果有)之后有效。

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

天暗了我发光 2024-08-09 10:16:16

在 QBasic 的某些方言中,以下情况是正确的:

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.

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.
动次打次papapa 2024-08-09 10:16:16

我自己一直认为这是“提醒”,但 Chris Bunch 可能是对的 - “评论”似乎更有可能。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文