>From a programming standpoint which is (a) more efficient, and (b) easier to
understand - Interpret or Value.

Examples:

/* rexx */                                    
/* setup our defaults to start with */        
istr = 'abc'                                  
vstr = istr                                   
                                              
/* value examples */                          
newvar = value(vstr,'def')                    
say newvar                                    
say vstr value(vstr)                          
newvar = value(vstr''1,'second')              
say newvar                                    
say vstr''1 value(vstr''1)                    
                                              
/* interpret examples */                      
interpret 'istr = def'                        
interpret 'say' istr 'istr'                   
interpret 'istr'1 '= second'                  
interpret 'say' istr''1 'istr'1               

The main differences that I can see is that with interpret the new values
are uppercase, and with value the return contains the new variable name.

Lionel B. Dyck <><
Website: https://www.lbdsoftware.com
Github: https://github.com/lbdyck

"Worry more about your character than your reputation. Character is what you
are, reputation merely what others think you are."   - - - John Wooden

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to