home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / sci / math / 11382 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  1.6 KB

  1. Xref: sparky sci.math:11382 comp.lang.misc:3061 comp.lang.fortran:3544 comp.std.c:2621 comp.lang.c:13620
  2. Newsgroups: sci.math,comp.lang.misc,comp.lang.fortran,comp.std.c,comp.lang.c
  3. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!yktnews!prener
  4. From: prener@watson.ibm.com (Dan Prener)
  5. Subject: Re: Scientists as Programmers (was Re: Small Language Wanted)
  6. Sender: news@watson.ibm.com (NNTP News Poster)
  7. Message-ID: <PRENER.92Sep14014510@prener.watson.ibm.com>
  8. In-Reply-To: hrubin@pop.stat.purdue.edu's message of 13 Sep 92 18:23:16 GMT
  9. Date: Mon, 14 Sep 1992 06:45:10 GMT
  10. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  11. References: <id.I12T.GP4@ferranti.com> <a_rubin.716152347@dn66>
  12.     <MEISSNER.92Sep11164441@curley.osf.org>
  13.     <BuJ4Es.49w@mentor.cc.purdue.edu>
  14. Nntp-Posting-Host: prener.watson.ibm.com
  15. Organization: IBM T.J. Watson Research Center, Hawthorne, New York
  16. Lines: 16
  17.  
  18.  
  19. In article <BuJ4Es.49w@mentor.cc.purdue.edu> hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  20.  
  21. [... deletion ... (topic was obtaining long long product of two longs) ]
  22.  
  23. >                                                      And it still is
  24. >not quite adequate.  One should be able to have the option of overloading
  25. >the * operator so that if c is long long, and a and b are long, this can
  26. >be written as c = a * b.  
  27.  
  28. While that could be done, it goes very much against the spirit of most
  29. languages' expression evaluation, in which a * b has a value that is
  30. well defined without reference to the context in which it is used, in
  31. this case the type of the target of the assignment.
  32. --
  33.                                    Dan Prener (prener@watson.ibm.com)
  34.