Topic: Unusual Syntax Behavior
Hi Jeff,
I've encountered a syntax issue when using the extended line character symbol '&' followed by a backslash '\' and a space ' '. I receive Warning messages regarding the backslash and newline are separated by space. In the example code below, when the '?' mark after the backslash is removed, the Warnings appear. Once the Warnings appear, then I also get the following error messages:
'Error Symbol 'a' at (1) already has basic type of Integer'
'Error: Symbol 'ia' at (1) has no Implicit type'
Do you have an explanation for this behavior in the Simply Fortran editor?
INTEGER, PARAMETER :: I4 = Selected_Int_Kind(9)
INTEGER, PARAMETER :: I4B = KIND(1_I4)
!--- Warning: backslash and newline separated by space
INTEGER(I4B) :: A ! After \ ?
INTEGER(I4B) :: B ! Before > Factors
INTEGER(I4B) :: C ! Current /
!--- Warning: backslash and newline separated by space
INTEGER(I4B) :: & ! \ ?
IA, & ! \ ?
IB, & ! \ DO loop indicies.
IC, & ! /
IE, & ! /
!--- Initialize parameters
!--- Error Symbol 'a' at (1) already has basic type of Integer
A = 1
B = 1
C = 1
!--- Error: Symbol 'ia' at (1) has no Implicit type
IA = 1
IB = 1
IC = 1
IE = 1
On a different subject, what does the following option do?
Options->Appearance & Behavior->Launching-> [X] Use resilient process creation
Happy New Year 2022!
Frank