home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8396 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.4 KB

  1. Path: sparky!uunet!news.tek.com!vice!bobbe
  2. From: bobbe@vice.ICO.TEK.COM (Robert Beauchaine)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: TP6 private
  5. Message-ID: <11183@vice.ICO.TEK.COM>
  6. Date: 21 Jan 93 16:28:55 GMT
  7. References: <11172@vice.ICO.TEK.COM> <1993Jan20.225432.12514@beaver.cs.washington.edu>
  8. Organization: Tektronix, Inc., Beaverton,  OR.
  9. Lines: 27
  10.  
  11. In article <1993Jan20.225432.12514@beaver.cs.washington.edu> andrewb@lynx.cs.washington.edu (Andrew Berg) writes:
  12. >
  13. >What is the difference between Operator overloading and function overloading, 
  14. >from a usefulness point of view?  I think that function overloading is just
  15. >as important as operators.
  16.  
  17.   The difference is having to write things like complexc := complexa
  18.   + complexb instead of complexc := cadd(complexa,complexb).
  19.  
  20.   Normal algebraic equations for well defined operations on various
  21.   non-atomic data types in Pascal.  I can dream, can't I?
  22.  
  23.   BTW, I do like function overloading too, but could live without it
  24.   in a pinch.
  25.  
  26. /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ 
  27.  
  28. Bob Beauchaine bobbe@vice.ICO.TEK.COM 
  29.  
  30. "Look, I tried the cat experiment.  On the third trial, the cat was
  31. dead.  On each of the subsequent 413 trials, it remained dead.  Am I
  32. doing something wrong?"
  33.             James Nicoll
  34.  
  35. Q.  How many Heisenbergs does it take to screw in a light bulb?
  36. A.  If you know the number, you don't know where the light bulb is!
  37.  
  38.