Silverfrost Logo About Us | Contact Us
 

F2003 extensions

The following new features in the Fortran 2003 standard are available in FTN95. These extensions are automatically available when using FTN95. Use /-F2K in order to switch off the extensions.

1. TYPE_ALIAS

2. Square brackets in array constructors, for example

INTEGER :: a(5) = [1, 2, 3, 4, 5]

3. The command line intrinsics GET_COMMAND, COMMAND_ARGUMENT_COUNT, and GET_COMMAND_ARGUMENT.

4. Names of length up to 63 characters are permitted.

 

For .NET, note also:

The Fortran 2003 use of TYPE_ALIAS is extended in FTN95 to include .NET OBJECTs. For example:

TYPE_ALIAS decimal => OBJECT('System.Decimal')
TYPE(decimal) :: var1, var2

 

 

Copyright © 1999-2017 Silverfrost Limited