ARexx (33/77)

From:Me
Date:15 Apr 2001 at 21:42:25
Subject:Re: Invalid Symbol ?

Hello Joseph

On 15-Abr-01, you wrote:

> I tested the following script
> /* */
> msg.34 = "Hello"
> msg34 = "GetLost"
> say msg.34
> say msg34
> say Value(msg.34)
> say Value('msg.34')
> say Value(msg34)
> say Value('msg34')
>
> and got the results
> Hello
> GetLost
> HELLO
> Hello
> GETLOST
> GetLost
>
> So you are right : it has nothing to do with compound variables. You
> can conclude from this that Value() does not treat msg.34 nor msg34
> as an
> initialized variable. In fact the main objective of Value() as
> stated in 'Using Arexx on the Amiga' (Zamara & ullivan) "VALUE
> evaluates its single argument, then treats the resulting string as
> an Arexx symbol (numeric constant or variable name)... Usually
> though, the argument string evaluates to a variable name, and it is
> the value of that variable that is returned.."
>
> There is no special need for an evaluation function for either a
> normal variable nor for a compound variable whose name can be
> written down in the program (just use it as in say msg.34). Value()
> wants that you give it some 'real' work to do (translating a quoted
> string into a (compound)variable name)
>
> My previous reply was based on a script too (where i used the
> 'litigious' affectation
>>> msg.34 = 'eGroups-EW/0.82'
> I used a single pair of quotes with the Value('msg.34') in this case
> too.
>
> Conclusion; the quotes are needed, also, in a script but one pair is
> enough
>
> 2d Conclusion: we better avoid to use Value() in those trivial
> cases.

C'est exactement comme ça, Joseph :)

Regards,
GMaia

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Secure your servers with 128-bit SSL encryption!
Grab your copy of VeriSign's FREE Guide,
"Securing Your Web site for Business." Get it now!
http://us.click.yahoo.com/4cW4jC/e.WCAA/bT0EAA/stAVlB/TM
---------------------------------------------------------------------_->

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/