🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #2457

Re: Fortran vs. C for numerical work

#2457
From: Bruce.Hoult
Date: Sun, 09 Dec 1990 03:54
15 lines
1203 bytes
In article <X2uRT4w163w@mantis.UUCP> 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
Technical Details
Message-ID: <1990Dec9.035458.12233@actrix.gen.nz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!actrix!Bruce.Hoult
References: <1990Dec5.185852.5191@alchemy.chem.utoronto.ca> <X2uRT4w163w@mantis.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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> <X2uRT4w163w@mantis.UUCP>
Sender: Bruce.Hoult@actrix.gen.nz (Bruce Hoult)
Organization: Actrix Information Exchange, Wellington, New Zealand
Lines: 15
Comment-To: mathew@mantis.UUCP