Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29273 Discussions

Is arr = [k:n] a CVF-only extension?

dave_frank
Beginner
1,077 Views
Using this syntax in CLF newsgroup I drew a response that it isnt
included in F2003
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,077 Views
I don't know about "CVF-only". It is an extension to Fortran 95that is supported in CVF and IVF. Whoever told you that it is not part of F2003 is mistaken - at least according to the draft I have:

R465

array-constructor is (/ ac-spec /)
or left-square-bracket ac-spec right-square-bracket

My newsreader is not showing the thread with your post.
0 Kudos
dave_frank
Beginner
1,077 Views
Dick Henderson reply yesterday to my message in topic
"How to sort a vector......"

Message Edited by sblionel on 08-04-2004 12:46 PM

0 Kudos
Steven_L_Intel1
Employee
1,077 Views
Wait, perhaps I wrote too hastily. What particular syntax do you have in mind? Square brackets for array subscripts? That isn't supported. I was quoting the text on array constructors.
I can't find your post.
0 Kudos
Steven_L_Intel1
Employee
1,077 Views
Ok - I can't find your post but can find Dick's response.
Square brackets to form array constructors are part of F2003. The k:n syntax is not.

Message Edited by sblionel on 08-04-2004 12:47 PM

0 Kudos
Reply