C/C++ and Fortran

 View Only

New feature about END statement

By Archive User posted Wed March 13, 2013 09:57 PM

  

Originally posted by: ChristineLi


The XL Fortran compiler supports the new feature in the Fortran 2008 standard about END statement. It brings convenience for the programmers to conclude a function and subroutine for internal and module subprograms.

We were required to type FUNCTION or SUBROUTINE together with the END keyword to indicate the end of an internal subprogram or module subprogram. But with this new feature, we can omit FUNCTION and SUBROUTINE in such scope and only use the END keyword. It saves efforts of writing complete END statement. In addition, if we choose to omit FUNCTION or SUBROUTINE and stay concise, the name of the function or subroutine should also be omitted.

If you are interested in the feature, you can follow the link to learn more.

0 comments
0 views

Permalink