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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendices<br />

36. Non-character arrays are allowed as format specifiers.<br />

37. The following format edit descriptors are allowed:<br />

Z<br />

Ew.dDe<br />

for displaying data in hexadecimal format<br />

same as Ew.dEe except D is used as exponentiation character<br />

$ or \ leave cursor at end of line<br />

38. A repeat count is not required for the X edit descriptor (a repeat count of one is assumed).<br />

39. Commas are optional between format edit descriptors.<br />

100 FORMAT( 1X I5 )<br />

40. It is possible to substring the return values of functions and statement functions.<br />

CHARACTER*7 F, G<br />

F() = ’1234567’<br />

PRINT *, F()(1:3), G()(4:7)<br />

41. Functions may be invoked via the CALL statement. This allows the return value of functions to<br />

be ignored.<br />

42. A RETURN statement is allowed in the main program.<br />

43. Integer constants with more than 5 digits are allowed in the STOP and PAUSE statements.<br />

PAUSE 123456<br />

STOP 123456<br />

44. Multiple assignment is allowed.<br />

X = Y = Z = 0.0<br />

45. The .XOR. operator is supported (equivalent to .NEQV.).<br />

46. The .AND., .OR., .NEQV., .EQV. and .XOR. operators may take integer arguments.<br />

They can be used to perform bit operations on integers.<br />

47. Several additional program structure control statements are supported:<br />

288 <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!