 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
DanRRight
Joined: 10 Mar 2008 Posts: 2943 Location: South Pole, Antarctica
|
Posted: Mon Aug 11, 2025 3:56 am Post subject: Which way is preferable, apostroph or double quotation mark? |
|
|
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 |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8279 Location: Salford, UK
|
Posted: Mon Aug 11, 2025 6:34 am Post subject: |
|
|
There is no preference. The Fortran Standard allows both forms. |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2426 Location: Yateley, Hants, UK
|
Posted: Sun Aug 17, 2025 12:09 pm Post subject: |
|
|
Dan,
As like me you are an oldie, use the single quotes until you want to display a single quote mark. A good example is for degrees, minutes and seconds where you could use "'" for minutes (double-single-double), and '"' for seconds (single-double-single). I think that is clearer than repeating the single like this '''' (single-single-single-single) for minutes.
On the other hand, if you use grads or gons with milligrads or milligons, then you have none of the degrees, minutes, seconds problem, but you do need to check the language of your user to determine if they call it a grad or a gon!
Eddie |
|
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
|