On 5/2/24 06:21:02, Tony Thigpen wrote:
What does the REXX compiler do with duplicate labels?
.
Compatibility with ANSI Rexx should require tolerating them.
Phil Smith III wrote on 5/1/24 1:00 PM:
That's bad.
That's WAD. Remember, the goal of Rexx was ease of use. Just sayinn'.
< .
Earlier, someone remarked that some interpreters initially
compile to pseudocode. That can detect such errors.
Regina, for example, readily flags:
trace R
return
do Loop = 1 to 5
end WTF
Error 10 running "ret", line 5: Unexpected or unmatched END
CMS and TSO Rexx ignore that.
Peculiarly, TSO Rexx axcepts leading tabs for indention if the
exec is loaded from SYSPROC but reports them as illegal characters
if the exec is loaded from SYSeXEC. Different preprocessor.
--
gil