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 

Which way is preferable, apostroph or double quotation mark?

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



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

PostPosted: Mon Aug 11, 2025 3:56 am    Post subject: Which way is preferable, apostroph or double quotation mark? Reply with quote

The codes below both work OK but which way would be considered preferable? Which one is considered a major and which secondary? This one is right
Code:
     call winop@ ('%PL[axes_pen=2,frame, framed, frame_pen=2, width=2]')
     i = winio@  ('%PV%PL[x_axis="Time", y_axis= "Energy", x_array, scale=linear]%ff&',  900, 600, N, X, Y)

or this:
Code:
     call winop@ ("%PL[axes_pen=2,frame, framed, frame_pen=2, width=2]")     
     i = winio@  ("%PV%PL[x_axis='Time', y_axis= 'Energy', x_array, scale=linear]%ff&",  900, 600, N, X, Y) 


I think in the future even AI will be confused. It is better to define it than to have a total freedom/mess


Last edited by DanRRight on Mon Aug 11, 2025 8:18 am; edited 1 time in total
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8243
Location: Salford, UK

PostPosted: Mon Aug 11, 2025 6:34 am    Post subject: Reply with quote

There is no preference. The Fortran Standard allows both forms.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ 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