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:
Wirt Atmar <[log in to unmask]>
Reply To:
Date:
Thu, 15 Aug 2002 14:57:28 EDT
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
Jeff writes, following Tracy's comments on comments:

> > comment   if !_displayed > 0
>  > Variable name not found in variable table. (CIWARN 8101)
>
>  The CI resolves variable names *before* it even knows what the command
>  is.  That allows this kind of dynamic structure to work:
>
>    setvar x "#"
>    !x foo fum fie
>    !x there is more to do...   # simple comments here
>
>  Now if you setvar x to "echo", you get output from the above.

Nonetheless, you can easily argue that this construct, if left as it is, is a
design error. Comments should never be handed off to a
parser/interpreter/compiler.

Wirt Atmar

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

ATOM RSS1 RSS2