The Queen's University of Belfast
QUBPCCParallel Computer Centre

[Next] [Previous] [Top]

Redundant
Features


Redundant features

Topics

Redundant features

Source form

Use new free source form instead

Use modules instead

Redundant features

Data

Superseded by the concept of parameterised data types for numerical potability

Use IMPLICIT NONE statement always

Use the new form with a double colon (::) between the type and the list of variables

Use of the attribute forms, rather than the statement forms

Not needed as variables may be initialised in a type statement except for octal, hexadecimal and array section initialisations

Superseded by the assumed-shape arrays

Use of modules obviates the need for them

The introduction of modules, dynamic storage allocation, pointers, and the intrinsic function TRANSFER makes its use unnecessary

Should never be used

Redundant features

Control

Can be replaced by IF statement, IF, DO and CASE control constructs, and EXIT and CYCLE statements

The above listed should never be used in new or revised programs.

The use of labels are rarely necessary with the introduction of modern control constructs and the character string format specifications

Can be replaced by using DO construct, EXIT and CYCLE statements

IF, DO and CASE constructs, EXIT and CYCLE statements should be used instead

Can replaced by DO loop construct and EXIT statement

Redundant features

Procedures

Superseded by generic versions (note: a specific name is required only when an intrinsic function is being used as an actual argument)

Can be replaced by internal procedures and modules

Superseded by the concept of internal procedures

Putting procedures either in a module or another program unit as internal procedures makes things much easier that it really is not necessary to use external procedures in any new or revised programs

Redundant features

Input/Output

The same effect can be achieved by assigning the format specification to a character string

Each of these conditions are recommended to be checked by using the IOSTAT= specifier

Is an extremely poorly designed feature and best not to use it unless absolutely necessary

Superseded by the E edit descriptor

The BLANK specifier provides a better way to deal with the problem

Can lead to confusion and is best to avoid

Using I, E, EN, ES, F, L, or A edit descriptors can provide some checking whether the data types are all corrected

This position edit descriptor is the same as Turn


[Next] [Previous] [Top]
All documents are the responsibility of, and copyright, © their authors and do not represent the views of The Parallel Computer Centre, nor of The Queen's University of Belfast.
Maintained by Alan Rea, email A.Rea@qub.ac.uk
Generated with CERN WebMaker