home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13606 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.7 KB

  1. 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
  2. From: tmb@arolla.idiap.ch (Thomas M. Breuel)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Answers on a postcard...
  5. Message-ID: <TMB.92Sep14151736@arolla.idiap.ch>
  6. Date: 14 Sep 92 19:17:36 GMT
  7. References: <92254.104002KKEYTE@ESOC.BITNET> <1992Sep10.174914.838@taumet.com>
  8.     <92255.112151KKEYTE@ESOC.BITNET> <1992Sep11.174716.3699@taumet.com>
  9.     <92256.150512KKEYTE@ESOC.BITNET> <1992Sep13.160033.7735@taumet.com>
  10. Sender: news@ai.mit.edu
  11. Reply-To: tmb@idiap.ch
  12. Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
  13.     Perceptive)
  14. Lines: 24
  15. In-reply-to: steve@taumet.com's message of 13 Sep 92 16:00:33 GMT
  16.  
  17. In article <1992Sep13.160033.7735@taumet.com> steve@taumet.com (Steve Clamage) writes:
  18.  
  19.    It would be possible to change the rules so that order of evaluation
  20.    was preserved for overloaded versions of operators "&&", "||", and ",".
  21.    Any proposal to do so would have to show some good reason why the
  22.    change is needed.  Personally, I've never seen any example of code
  23.    which was improved by using an overloaded comma (which of course
  24.    doesn't mean there is no such code).
  25.  
  26. Well, one way to view the "," operator is not in its use as a sequence
  27. operator, but in its use as something that "builds argument lists".
  28.  
  29. I could imagine writing an RPC package which might use function calls
  30. that look like:
  31.  
  32.     rfun f1 = get_remote_function("...f1");
  33.     rfun f2 = get_remote_function("...f2");
  34.     promise p = (f1,arg1,(f2,arg2),arg3);
  35.  
  36. I haven't tried this though, and I generally don't like too much
  37. syntactic gadgetry. But, once you have added a feature, people are
  38. going to find a use for it...
  39.  
  40.                     Thomas.
  41.