Anonymous user
Talk:Read a configuration file: Difference between revisions
→REXX vs ooRexx: added a note about the REXX program example (and it's fix). -- ~~~~
Walterpachl (talk | contribs) (→REXX vs ooRexx: thanks) |
(→REXX vs ooRexx: added a note about the REXX program example (and it's fix). -- ~~~~) |
||
(One intermediate revision by one other user not shown) | |||
Line 111:
: I don't feel comfortable doing this level of debugging/bench-testing of a REXX program that clearly wasn't tested with any Classic REXX. Maybe the author of the program could perform that task better. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 17:31, 24 July 2013 (UTC)
::: Thank you for telling me/us (I am NOT the author). --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 18:22, 24 July 2013 (UTC)
:::: I tested now the REXX program and I think that there is a problem with bad variable names
<lang rexx>
varList=varList xxx /*add it to the list of vARiables*/
if value='' then value='true' /*if no value, then use "true". */
if symbol(xxx)=='BAD' then do /*can REXX use the variable name?*/
Say xxx 'is a bad name'
badVar=badVar+1; bad=bad xxx; iterate
end
</lang>
:::: bad names should not go into varlist!?! --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 19:47, 24 July 2013 (UTC)
::::: Yes, you're correct. If the variable name (in the configuration file) isn't a legal REXX variable name, then it shouldn't be added to the list of variable names (varList) in the REXX program. The REXX code has been fixed. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 18:12, 27 July 2013 (UTC)
|