home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19992 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.7 KB  |  45 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att-out!cbnewsh!gls
  3. From: gls@windmill.ATT.COM (Col. G. L. Sicherman)
  4. Subject: H-P C++ 3.0
  5. Organization: AT&T
  6. Date: Tue, 26 Jan 1993 20:23:52 GMT
  7. Message-ID: <1993Jan26.202352.24339@cbnewsh.cb.att.com>
  8. Sender: gls@cbnewsh.cb.att.com (Col. G. L. Sicherman)
  9. Lines: 34
  10.  
  11. I've been using Hewlett-Packard C++ 3.0 lately.  It's pleasantly strict
  12. about many things that version 2 was lax about.  On the other hand,
  13. generating the -I options for template linking is a nuisance, and we've
  14. been bitten by a couple of unrelated bugs:
  15.  
  16. 1. The standard components generously let you use version 2 of the
  17.    List class by #including <List_old.h>.  You still have to convert
  18.    your declarations to angle brackets, but that's progress.  Anyway,
  19.    the old routines that return a copy of an element used to deal with 
  20.    "no such element" in this fashion:
  21.  
  22.     // if (no such element)
  23.     // return 0;
  24.  
  25.    In other words, somebody programmed them to return 0, was perplexed
  26.    when the compiler rejected it, and reluctantly commented the statement
  27.    out.
  28.  
  29.    In version 3, some of these statements have been uncommented.  The
  30.    result is that you can't compile List<String> at all.  You can't
  31.    compile a list of any type with two or more constructors, unless
  32.    one of them takes an int.
  33.  
  34. 2. CC -S sometimes generates bogus assembly code.  We're getting
  35.    DS (define symbol) directives with an argument of /dev/null.
  36.    Of course, /dev/null is not a legal name for a symbol.  If we
  37.    compile to C first and then to assembly language, there's no
  38.    problem.
  39.  
  40. We've solved problem 1 by restoring the screw marks, and problem 2 by
  41. compiling to C first.  Does anybody have any better ideas?
  42. -- 
  43. Col. G. L. Sicherman
  44. gls@windmill.att.COM
  45.