Confusing NetRexx source code

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Confusing NetRexx source code

Jason Martin
In DiagComment.nrx

nrx code on line 150: (REPLACED ACTUAL CHAR WITH <ctrl-L>)

  ffs=int('\f')<ctrl-L>'f-f'<ctrl-L><ctrl-L>'f-f2'

Java source for this line is :

  ffs=java.lang.String.valueOf((int)('\f'))+" "+"f-f"+" "+"f-f2";


Are the formfeeds actually needed or is this some Editor artifact?



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Confusing NetRexx source code

Mike Cowlishaw
This is a testcase and at that point it's testing 'white space'.  So at a guess it's checking that formfeeds are properly being treated as 'white space'?
 
Mike


From: [hidden email] [mailto:[hidden email]] On Behalf Of Jason Martin
Sent: 17 March 2015 14:10
To: IBM Netrexx
Subject: [Ibm-netrexx] Confusing NetRexx source code

In DiagComment.nrx

nrx code on line 150: (REPLACED ACTUAL CHAR WITH <ctrl-L>)

  ffs=int('\f')<ctrl-L>'f-f'<ctrl-L><ctrl-L>'f-f2'

Java source for this line is :

  ffs=java.lang.String.valueOf((int)('\f'))+" "+"f-f"+" "+"f-f2";


Are the formfeeds actually needed or is this some Editor artifact?



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Confusing NetRexx source code

Jason Martin
In reply to this post by Jason Martin
Thanks.
I thought later, maybe it might be some kind of test to see if NetRexxC could process source files with embedded form feeds.

It does need to be commented for future reference.

On Tue, Mar 17, 2015 at 10:09 AM, Jason Martin <[hidden email]> wrote:
In DiagComment.nrx

nrx code on line 150: (REPLACED ACTUAL CHAR WITH <ctrl-L>)

  ffs=int('\f')<ctrl-L>'f-f'<ctrl-L><ctrl-L>'f-f2'

Java source for this line is :

  ffs=java.lang.String.valueOf((int)('\f'))+" "+"f-f"+" "+"f-f2";


Are the formfeeds actually needed or is this some Editor artifact?




_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/