home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!agate!ames!sun-barr!olivea!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!tmb
- From: tmb@arolla.idiap.ch (Thomas M. Breuel)
- Newsgroups: comp.lang.c++
- Subject: Re: Answers on a postcard...
- Message-ID: <TMB.92Sep14151736@arolla.idiap.ch>
- Date: 14 Sep 92 19:17:36 GMT
- References: <92254.104002KKEYTE@ESOC.BITNET> <1992Sep10.174914.838@taumet.com>
- <92255.112151KKEYTE@ESOC.BITNET> <1992Sep11.174716.3699@taumet.com>
- <92256.150512KKEYTE@ESOC.BITNET> <1992Sep13.160033.7735@taumet.com>
- Sender: news@ai.mit.edu
- Reply-To: tmb@idiap.ch
- Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
- Perceptive)
- Lines: 24
- In-reply-to: steve@taumet.com's message of 13 Sep 92 16:00:33 GMT
-
- In article <1992Sep13.160033.7735@taumet.com> steve@taumet.com (Steve Clamage) writes:
-
- It would be possible to change the rules so that order of evaluation
- was preserved for overloaded versions of operators "&&", "||", and ",".
- Any proposal to do so would have to show some good reason why the
- change is needed. Personally, I've never seen any example of code
- which was improved by using an overloaded comma (which of course
- doesn't mean there is no such code).
-
- Well, one way to view the "," operator is not in its use as a sequence
- operator, but in its use as something that "builds argument lists".
-
- I could imagine writing an RPC package which might use function calls
- that look like:
-
- rfun f1 = get_remote_function("...f1");
- rfun f2 = get_remote_function("...f2");
- promise p = (f1,arg1,(f2,arg2),arg3);
-
- I haven't tried this though, and I generally don't like too much
- syntactic gadgetry. But, once you have added a feature, people are
- going to find a use for it...
-
- Thomas.
-