On Wed, 21 Jan 2015 01:24:24 +0100, Bernd Oppolzer wrote: > >... Same goes >for the difference of two pointers; you get the numbers of elements between the >pointers. That's because every pointer is typed in C. > >PL/1 today also allows simple pointer arithmetic, and even with a C-like >syntax (if you want): > >DCL P PTR; > >P = ADDR (X); >P += 5; > >/* now P contains the ADDR of X plus 5 */ > >but unlike C, pointers in PL/1 have no type, so in this case, you get simple >address arithmetic. > I shall scarcely be surprised if an ardent PL/I partisan on this list touts that as a merit of PL/I.
-- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN