home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18390 < prev    next >
Encoding:
Text File  |  1992-12-24  |  1.4 KB  |  38 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!paladin.american.edu!gatech!swrinde!emory!wupost!sdd.hp.com!hpscit.sc.hp.com!hpuerca.atl.hp.com!aaa
  3. From: aaa@hpuerca.atl.hp.com (Simon Fowler)
  4. Subject: Re: Bug in BC/C++ 2.0 ?
  5. Sender: news@hpuerca.atl.hp.com ( News admin)
  6. Message-ID: <BzrsxL.7t9@hpuerca.atl.hp.com>
  7. Date: Thu, 24 Dec 1992 15:41:45 GMT
  8. References: <rogerl.724699309@Minsk>  <1992Dec23.202206.29576@microsoft.com>
  9. Organization: Hewlett-Packard Company, Atlanta GA
  10. Keywords: bugs
  11. Lines: 25
  12.  
  13. In article <1992Dec23.202206.29576@microsoft.com>, pauljo@microsoft.com (Paul Johns) writes:
  14. > What's happening here is that the rules in C++ changed
  15. > AFTER the Borland 2.0 compiler was written.
  16. > In the old (before AT&T 2.1, I believe) days, you had
  17. > to specify the size of the array you were deleting.
  18. > And you had to get it right.  The old Borland compiler
  19. > is compatible with this old rule.
  20.  
  21. As is the Zortech compiler for OS/2 1.3.
  22.  
  23. > 1.  Upgrade your compiler to one that's AT&T 2.1-compliant.
  24. >     I think you should consider Microsoft C++, but I
  25. >     work for Microsoft and own Microsoft stock, so I
  26. >     have a clear bias.  :)
  27.  
  28. Not much alternative for OS/2 1.3
  29.  
  30. > 2.  Put the size in the delete.  This is upwards-compatible:
  31. >     it's ignored in AT&T 2.1 and 3.0.  This can be a little
  32. >     bit of a pain, but it's probably cheaper than upgrading.
  33.  
  34. Not ignored in IBMC++
  35.  
  36. simon
  37.