replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Is this line continuation method Standard conforming ?
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is this line continuation method Standard conforming ?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
DanRRight



Joined: 10 Mar 2008
Posts: 2924
Location: South Pole, Antarctica

PostPosted: Sun Sep 29, 2013 11:28 pm    Post subject: Is this line continuation method Standard conforming ? Reply with quote

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
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2615
Location: Sydney

PostPosted: Mon Sep 30, 2013 2:28 am    Post subject: Reply with quote

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
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2924
Location: South Pole, Antarctica

PostPosted: Mon Sep 30, 2013 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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