Can anyone explain this phenomenon:

Given this little program

Parse Version v
Say v
fid=''
Say lines(fid)
l=linein(fid)
ll=length(l)
If ll<>81 Then
Say 'incorrect input'
Say 'length(l)='ll
Say 'garbage 1'
/* comment */
Say 'garbage 2'
Say 'garbage 3'
Say 'garbage 4'
Say 'garbage 5'

Running it shows this output (after one presses Enter

F:\>rexx sda
REXX-ooRexx_5.0.0(MT)_64-bit 6.05 8 Sep 2020
0

incorrect input
length(l)=0
garbage 1
garbage 2
garbage 3
garbage 4
garbage 5


How does the PROGRAM SOURCE find its way to the screen?

Surprised, no: astonished:  Walter

BTW Regina shows 1 (not 0) as value of lines(). Otherwise the same behavior
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to