HP3000-L Archives

November 1996, Week 4

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 Vance <[log in to unmask]>
Reply To:
Jeff Vance <[log in to unmask]>
Date:
Fri, 22 Nov 1996 21:38:16 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (70 lines)
On Nov 8,  3:34pm, John Dunlop wrote:
> Subject: Re: Cool "getenv" feature on MPE/iX

There are certain reserved names that are treated as JCWs in an expression
or command line substitution, but are not truely variables, in that they
consume no storage in our variable table:
   system
   fatal
   warn
   ok

These reserved names can have a number concatenated also, like:
   ok444

SHOWJCW shows them, CALC can evaluate them, echo !reserved_name works,
![reserved_name] works, the FINDJCW intrinsic returns them, but SHOWVAR
doesn't show them cuz they aren't really there!

All of the other ways of seeing these reserved names have been
kludged up to work -- to be compatible with MPE V/E back in the
very early releases of MPE XL.

Now, should these reserved names be PRIVATE ? ... :)

Jeff Vance, CSY

> Walter Murray wrote:
> >
> > Richard Trapp RAT ([log in to unmask]) wrote:
> > : Greetings folks,
> > :    I just wanted to pass on a interesting "feature" of the "getenv"
function
> > : which we ran into recently:
> > :   Doing a getenv on a non-existent variable named "SYSTEM" returned a
value
> > : instead of a null string.
> >
> > <snip>
> >
> > Hi, Rich!  Glad you enjoyed this!  Actually, it looks like a "feature"
> > of the underlying intrinsic, HPCIGETVAR.  It surprises me, too.
> >
> > Walter Murray
> > Hewlett-Packard
> > Support Technology Lab
>
> Funny that....also this :
>
> Dev:showvar system
>               ^
> Variable not found in variable table. (CIERR 8106)
> Dev:echo !system
> 49152   <----   I've no idea what this is but I assume it is similar to
> the above
>
> Cheers,
> John
> --
> Work : [log in to unmask]
> Home : [log in to unmask]
> Web  : http://www.tcp.co.uk/~jdunlop/index.html
>
> [STD disclaimer: All thoughts and opinions expressed are my own and do
> not reflect the opinions of any current (or former) employers]
>-- End of excerpt from John Dunlop



--

ATOM RSS1 RSS2