HP3000-L Archives

August 2002, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Woods <[log in to unmask]>
Reply To:
Date:
Thu, 15 Aug 2002 19:34:30 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
There is a very simple solution to this problem.  We have two equivalent
ways to do comments, one of which is a single byte (conveniently
non-alpha so it's not case-sensitive).  I propose the following change
to the MPE CI:

[If the first byte is "#" then the rest of that line is completely
ignored for anything except possible echoing.]

Note: If "first byte" is replaced with "first non-whitespace byte" I
wouldn't care. Likewise, if the # logic works when

This will allow both opaque and transparent "comments", as needed, since
COMMENT lines can still have substitutions which might be useful in some
cases.

Examples:

COMMENT This comment will show the current group: !hpgroup
# This <comment> shouldn't do anything![right?]
echo group=!hpgroup # should !hpgroup substitution happen here?
<Preferably not.>
COMMENT So maybe !hpgroup should # and !hpgroup shouldn't.  :)

Hmmm... A quick test on MPE 7.0 makes it look like # can't be used to
add comments to the end of lines in the MPE CI.  If so, ignore those
last couple of examples.  (But it works in the shell.)
--
Jeff Woods
[log in to unmask]
[log in to unmask]
Quintessential School Systems

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2