home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16066 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.5 KB  |  41 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!stanford.edu!EE.Stanford.EDU!sierra!mcgrant
  3. From: mcgrant@rascals.stanford.edu (Michael C. Grant)
  4. Subject: the COOL library
  5. Message-ID: <MCGRANT.92Nov10171811@rascals.stanford.edu>
  6. Sender: usenet@EE.Stanford.EDU (Usenet)
  7. Organization: Information Systems Laboratory, Stanford University
  8. Date: 10 Nov 92 17:18:11
  9. Lines: 30
  10.  
  11.  
  12. I know that COOL is unsupported software, but I was wondering if there is
  13. a standard group of people maintaining it.
  14.  
  15. I pulled both ice and lice (the lite COOL package) from an ftp site, and
  16. it seemed complete and up to date. I fixed a couple of incompatabilities
  17. with Sun CC 2.1 and lice's String and Gen_String classes, and otherwise it
  18. all compiled without a hitch.
  19.  
  20. But then, as I examined the Complex.h class (which, in my opinion, should
  21. have been a wrapper around the standard no-overhead-but-no-exceptions-either
  22. AT&T complex class), I was startled to find:
  23.  
  24. inline Complex Complex::sin () const {
  25.   return Complex (::sin (this->r), ::sin (this->i));
  26. }
  27.  
  28. I was mortified! This is not even CLOSE to being correct... all of the
  29. trigonometric and hyperbolic functions are definied in this manner,
  30. so all are similarly incorrect.
  31.  
  32. So, if there is anyone out there who is collecting bug reports for COOL,
  33. will you drop me a line? I'll gladly present you with modified versions of
  34. the trig functions.
  35.  
  36. I must say I'm impressed overall, though... I especially like the template
  37. pre-processor.
  38.  
  39. Michael C. Grant
  40. mcgrant@isl.stanford.edu
  41.