Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!actrix!Bruce.Hoult From: Bruce.Hoult@bbs.actrix.gen.nz Newsgroups: comp.lang.misc Subject: Re: Fortran vs. C for numerical work Message-ID: <1990Dec9.035458.12233@actrix.gen.nz> Date: 9 Dec 90 03:54:58 GMT References: <1990Dec5.185852.5191@alchemy.chem.utoronto.ca> Sender: Bruce.Hoult@actrix.gen.nz (Bruce Hoult) Organization: Actrix Information Exchange, Wellington, New Zealand Lines: 15 Comment-To: mathew@mantis.UUCP In article mathew@mantis.UUCP (mathew) writes: >With C++, you can even define an infix notation for pow, and write things >like a = b toThe c; Not within the language, you can't. C++ lets you attech user-defined functions to infix operators, but the operator symbol must already exist in the language. Your "toThe" isn't allowed. You *could* use the above example if you did a #define so that "toThe" was replaced by a standard operator symbol, but that might get confusing. -- Bruce.Hoult@bbs.actrix.gen.nz Twisted pair: +64 4 772 116 BIX: brucehoult Last Resort: PO Box 4145 Wellington, NZ