Silverfrost Forums

Welcome to our forums

Is this line continuation method Standard conforming ?

29 Sep 2013 10:28 (Edited: 30 Sep 2013 11:01) #13070

I'm still curious if this is valid way of using the same less then 72 character wide blocks of text with continuations across both the free and fixed formats if I put & at the end of the line and then also & in the 6th position of continuation line? Is this Standard conforming ?

         common aaaaaaaaa, bbbbbbb, ccccccccc, &
     &  dddddddddddd, eeeeeeee, fffffffffffff, &
     &  gggggggggggg, hhhhhhhhhhhhh    
30 Sep 2013 1:28 #13072

Dan,

Yes it is standard conforming.

For free format, you can end a line with & then start the next line with an &

For it to be standard conforming for both free and fixed format, the & on the second line must be in column 6, and the & on the first line must be beyond column 72, hence 73 While fixed format allows lots of continuation characters in column 6, & works for both.

All this is more difficult if the continuation involves a long text string, say a character variable or a format statement. In these cases, implied text continuation produces code that is not easy to read or check, so I resort to // concatenation when spaning multiple lines, eg

       ch = 'this is a very long string continued ' //  &
      &    'over 2 lines'

John

30 Sep 2013 7:56 #13073

John, I think i confused everyone. My example does not work for fixed form if & is at the end of the line within 72 characters. So i removed any mentioning of that in previous text. The way of continuation you are mentioning is a nice trick though.

Please login to reply.