home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / misc / 3612 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.9 KB  |  41 lines

  1. Newsgroups: comp.lang.misc
  2. Path: sparky!uunet!mcsun!news.funet.fi!network.jyu.fi!sakkinen
  3. From: sakkinen@jyu.fi (Markku Sakkinen)
  4. Subject: Re: Pointers
  5. Message-ID: <1992Nov12.141532.16375@jyu.fi>
  6. Organization: University of Jyvaskyla, Finland
  7. References: <1992Nov11.155149.14744@rdg.dec.com> <1992Nov12.081454.23507@jyu.fi> <1992Nov12.103513.14043@rdg.dec.com>
  8. Date: Thu, 12 Nov 1992 14:15:32 GMT
  9. Lines: 30
  10.  
  11. In article <1992Nov12.103513.14043@rdg.dec.com> jch@rdg.dec.com (John Haxby) writes:
  12. >In article <1992Nov12.081454.23507@jyu.fi>, sakkinen@jyu.fi (Markku Sakkinen) writes:
  13. >|> Actually, I think, _all_ variables in CLU are references,
  14. >|> except those of atomic types.  (Pretty much like LISP.)
  15. >
  16. >CLU has only two flavours of cluster: mutable and immutable.
  17. >Procedure (and iterator) parameter passing is by sharing (rather than
  18. >value or reference) since there is no notion of value or reference, only
  19. >of the name of an object which may be one of many names.
  20. >
  21. >The implementation uses pointers left, right and centre for practically
  22. >everything -- the exceptions might be int, char, bool and possibly float.
  23. >For the VAX implementation, the native VAX implementation--the
  24. >language is not interested in grubby pointers and references, only in names.
  25.  
  26. Don't be fooled by words.  Maybe the CLU literature does not much use
  27. the word 'reference' (I don't remember), but I cannot see any semantic
  28. difference between CLU variables (of non-atomic types) and reference
  29. (or pointer) variables in many other languages.  'By sharing' is
  30. exactly the same as 'by reference'.
  31.  
  32. ----------------------------------------------------------------------
  33. Markku Sakkinen (sakkinen@jytko.jyu.fi)
  34.        SAKKINEN@FINJYU.bitnet (alternative network address)
  35. Department of Computer Science and Information Systems
  36. University of Jyvaskyla (a's with umlauts)
  37. PL 35
  38. SF-40351 Jyvaskyla (umlauts again)
  39. Finland
  40. ----------------------------------------------------------------------
  41.