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