[Default] On 1 Jun 2017 20:01:35 -0700, in bit.listserv.ibm-main [email protected] (Paul Gilmartin) wrote:
>> snip >Back around MVS 5.2, many library functions checked for NULL >and returned an explicit "pointer error" errno. This is certainly >consistent with "whatever it wants". But it seems many UNIX >hosts, deliberately or incidentally, have a 0 at virtual address 0, >and customers complained that programs which worked on those >other hosts failed, only for that reason, on MVS. Shamefully, IBM >caved to their pressure; continued to check for NULL, and substituted >a pointer to a byte, halfword, word of 0x00. I have generally >favored strict error checking and reporting over DWIM. So I >was disappointed recently when DASM which had been reporting >a clear base-displacement resolution failure changed to match >HLASM which failed to report the error. > >And I think it's loathsome that COBOL, by specification, ignores >(some?) overflows. Is that what GAAP requires? COBOL has an ON SIZE ERROR clause for all arithmetic operations and compiler warning messages for MOVEs that result in truncation. An overflow will be ignored if the programmer doesn't code the ON SIZE ERROR clause and the programmer can ignore warning messages. Clark Morris > >strcoll() is more locale-savvy. What the world needs is strcasecoll(). > >-- gil > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
