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

m
→‎Include Files: Added PL/M MIN and MAX
(→‎Include Files: Additional definitions)
m (→‎Include Files: Added PL/M MIN and MAX)
Line 193:
RETURN( A MOD B );
END MODF;</lang>
MIN: PROCEDURE( A, B ) ADDRESS;
DECLARE ( A, B ) ADDRESS;
IF A < B THEN RETURN( A ); ELSE RETURN( B );
END MIN;
MAX: PROCEDURE( A, B ) ADDRESS;
DECLARE ( A, B ) ADDRESS;
IF A > B THEN RETURN( A ); ELSE RETURN( B );
END MAX;
 
Note the lack of comments in the PL/M "include" file - this is because the definitions will be commented out for PL/I compilers by having a "/*" starting in column 81 preceeding the definitions and /* */ follow them.
3,032

edits