On Wed, 22 Feb 2017 14:00:55 -0600, Paul Gilmartin
([email protected]) wrote about "Re:
Question about PARMDD" (in
<[email protected]>):

> On Wed, 22 Feb 2017 19:52:26 +0000, David W Noon wrote:
>>
>> You need to remember that the PARMDD file is read in and concatenated
>> into a character string. The notion of comments inside a character
>> string is rather a strange one to me, as a programmer who has been doing
>> string parsing for decades.
>>
> And yet:
> 
> 572 $ rexx
> say 'foo'/*comment*/'bar'
> foobar
> 
> (Yes, I understand there's an implied concatenation operator there.)

Indeed, you have two character strings with a comment separating them,
then implicitly concatenated. Neither string contains a comment.

More than that, you are processing source code here, not data. The REXX
language defines comment delimiters and the language parser takes the
appropriate action.

In contrast the PARM string, whether coded as PARM or built from PARMDD,
is almost invariably data. There is no comment delimiter defined for
general data, as a data stream can contain anything in the most general
case.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
[email protected] (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

 

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

Reply via email to