home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18967 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.4 KB

  1. Path: sparky!uunet!mcsun!sun4nl!cwi.nl!dik
  2. From: dik@cwi.nl (Dik T. Winter)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Moving from Pascal to C, Help please!!!!!!
  5. Message-ID: <8475@charon.cwi.nl>
  6. Date: 29 Dec 92 10:52:25 GMT
  7. References: <78858@hydra.gatech.EDU> <8474@charon.cwi.nl> <4269@dozo.and.nl>
  8. Sender: news@cwi.nl
  9. Organization: CWI, Amsterdam
  10. Lines: 19
  11.  
  12. In article <4269@dozo.and.nl> jos@and.nl (Jos Horsmeier) writes:
  13.  > In article <8474@charon.cwi.nl> dik@cwi.nl (Dik T. Winter) writes:
  14.  > |The second is not a really valid complaint.  The difference between call
  15.  > |by value and call by reference is specific to Pascal (inherited from Algol
  16.  > |60), and in fact artificial.
  17.  > 
  18.  > If I remember well, the Algol 60 language had no such thing as `call by
  19.  > reference'. This language implemented the `call by name' parameter passing
  20.  > mechanism.
  21.  
  22. Right, and I know that well enough (having programmed in Algol 60 for some
  23. 10 years).  But as you mentioned the intent was to implement 'call by
  24. reference' and it was agreed that 'call by name' was not the way to go.
  25. I still maintain that Pascal's call by reference is in fact inherited
  26. from Algol 60's call by name (the other wide-spread languages of those
  27. times did not have such two distinctive parameter passing mechanisms).
  28. -- 
  29. dik t. winter, cwi, kruislaan 413, 1098 sj  amsterdam, nederland
  30. home: bovenover 215, 1025 jn  amsterdam, nederland; e-mail: dik@cwi.nl
  31.