Category:Polyglot:PL/I and PL/M: Difference between revisions

→‎PL/I and PL/M: Notes on arrays
m (→‎Include Files: More PL/M definitions)
(→‎PL/I and PL/M: Notes on arrays)
Line 31:
* Identifiers can contain underscores and some implementations allow dollar signs.
* Keywords are not reserved in PL/I.
 
===Arrays===
In PL/I when an array is declared, the lower boiund can be omitted and defaults to 1. The upper bound is the dimension specified in the declaration.<br>
E.g. <code>declare a ( 100 ) fixed binary;</code> declares an array of 100 integers, the subscripts range from 1 to 100.<br><br>
In PL/M when an array is declared, the lower bound cannot be specified and is always 0. The upper bound is one less than the dimension specified in the declaration.<br>
E.g. <code>DECLARE A( 101 ) ADDRESS;</code> declares an array of 101 integers, the subscripts range form 0 to 100.
<br><br>
PL/M only allows arrays with a single subscript to be declared. PL/I allows multi-dimensional arrays.
<br><br>
 
===Implementation===
3,038

edits