 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
DanRRight
Joined: 10 Mar 2008 Posts: 2924 Location: South Pole, Antarctica
|
Posted: Sun Sep 29, 2013 11:28 pm Post subject: Is this line continuation method Standard conforming ? |
|
|
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 ?
Code: |
common aaaaaaaaa, bbbbbbb, ccccccccc, &
& dddddddddddd, eeeeeeee, fffffffffffff, &
& gggggggggggg, hhhhhhhhhhhhh |
Last edited by DanRRight on Tue Oct 01, 2013 12:01 am; edited 2 times in total |
|
Back to top |
|
 |
JohnCampbell
Joined: 16 Feb 2006 Posts: 2615 Location: Sydney
|
Posted: Mon Sep 30, 2013 2:28 am Post subject: |
|
|
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
Code: | ch = 'this is a very long string continued ' // &
& 'over 2 lines'
|
John |
|
Back to top |
|
 |
DanRRight
Joined: 10 Mar 2008 Posts: 2924 Location: South Pole, Antarctica
|
Posted: Mon Sep 30, 2013 8:56 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|