On Wed, 16 Jan 2013 17:26:03 +0000, Martin Packer wrote: >If I remember rightly Pascal does bounds checking. Pascal was one of the >languages I did at college - and the highest-level one. A bit of a shock >to me to discover - in an IBM Systems Engineer training homework >assignment - that COBOL didn't. (This was in 1986.) The result was me >stomping over the code by assigning values to array elements using only >slightly excessive subscript values. :-) I think I learnt something from >that. :-) > It can be implementation dependent. Consider the Dartmouth/GE time sharing system, which ran on hardware with no memory protection, relying on array bounds checking by the FORTRAN and BASIC processors. Frustrating. To do this they enforced some rules they invented that were never part of the FORTRAN standard.
-- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
