| United States-English |
|
|
|
![]() |
HP Fortran 90 Programmer's Reference: HP Fortran 90 Programmer's Reference > Chapter 10 HP Fortran 90 statementsAUTOMATIC (extension) |
|
Makes procedure variables and arrays automatic. Syntax
DescriptionThe AUTOMATIC statement is provided as an HP extension. If a variable or array declared within a procedure is declared as automatic, then there is one copy of it for each invocation of the procedure. Space is allocated on entry to the procedure and deallocated on exit. This is also the default for variables that do not have the SAVE or STATIC attribute, unless the +save option has been specified. If it is required to have the same copy of a variable available to each invocation of the routine (for example, to keep a record of the depth of recursion), then the variable should have the SAVE attribute. Note the following:
Examples
Related statementsSAVE and STATIC Related conceptsFor information about automatic and static variables, refer to the HP Fortran 90 Programmer's Guide. |
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||