24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendices<br />

10. The DOUBLE COMPLEX statement is supported (equivalent to COMPLEX*16).<br />

11. Double precision complex constants are allowed.<br />

Z = (1D0, 2D0)<br />

12. Mixing operands of type DOUBLE PRECISION and COMPLEX to yield a COMPLEX*16 result<br />

is allowed.<br />

DOUBLE PRECISION X<br />

COMPLEX Y, Z*16<br />

Z = X + Y<br />

13. User-defined structures are supported.<br />

STRUCTURE/END STRUCTURE<br />

UNION/END UNION<br />

MAP/END MAP<br />

RECORD<br />

14. Both character and non-character data are allowed in the same common block.<br />

INTEGER X<br />

CHARACTER C<br />

COMMON /BLK/ X, C<br />

15. Data initialization of variables in common without a block data subprogram is allowed.<br />

16. Equivalencing character to non-character data is permitted.<br />

INTEGER X<br />

CHARACTER C<br />

EQUIVALENCE (X, C)<br />

17. Single subscripts for multi-dimensional arrays is permitted in EQUIVALENCE statements.<br />

18. Data initialization in a type specification statement is allowed.<br />

DOUBLE PRECISION X/4.3D1/<br />

19. Data initialization with hexadecimal constants is allowed.<br />

INTEGER I/Z00000007/<br />

20. Initializing character items with numeric data is permitted.<br />

21. Hexadecimal and octal constants of the form ’abc’x and ’567’o are supported.<br />

22. A character constant of the form ’abcdef’c places a NUL character (CHAR(0)) at the end of<br />

the character string.<br />

23. Hollerith constants can be used interchangeably with character constants.<br />

CHARACTER*10 A, B<br />

A = ’1234567890’<br />

B = 10H123456790<br />

286 <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> Extensions to Standard <strong>FORTRAN</strong> <strong>77</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!