Idiomatically determine all the characters that can be used for symbols: Difference between revisions

→‎{{header|REXX}}: remover ooRexx Output from Version 1 and changed reasoning for Version 2
(→‎version 2 ooRexx compatible: improve the sentence about ooRexx)
(→‎{{header|REXX}}: remover ooRexx Output from Version 1 and changed reasoning for Version 2)
Line 162:
</pre>
 
===version 2 ooRexx compatible===
Using ooRexx (since I've been asked) shows it doesn't work.
Because version 1 does not work correctly with ooRexx - showing this error message:
{{out}}
<pre> 2 *-* @
Error 13 running D:\v1.rex line 2: Invalid character in program
Error 13.1: Incorrect character in program "@" ('40'X)
</pre>
Thus I've added version 2. which should work correctly for all Rexx interpreters and compilers
 
===version 2 ooRexx compatible===
This is to show what the results are for this REXX program. Cf. the ooRexx section.
<lang rexx>/*REXX program determines what characters are valid for REXX symbols.*/
/* version 1adapted1 adapted for ooRexxgeneral acceptance (without using any oo feature) */
Parse Version v
Say v
2,295

edits