home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / modula3 / 1151 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.lang.modula3
  2. Path: sparky!uunet!shearson.com!jredford
  3. From: jredford@shearson.com (John Redford)
  4. Subject: Re: references, objects & m3
  5. In-Reply-To: fn00@gte.com's message of 25 Jan 93 13:56:01 GMT
  6. Message-ID: <1993Jan25.191726.6722@shearson.com>
  7. Sender: news@shearson.com (News)
  8. Organization: Lehman Brothers
  9. References: <C1BsMI.5Ay@undergrad.math.waterloo.edu> <MOSS.93Jan24164146@CRAFTY.cs.cmu.edu>
  10.     <C1E30F.vx@undergrad.math.waterloo.edu>
  11.     <FN00.93Jan25085601@tahoe.gte.com>
  12. Date: Mon, 25 Jan 1993 19:17:26 GMT
  13. Lines: 21
  14.  
  15. In article <FN00.93Jan25085601@tahoe.gte.com> fn00@gte.com (Farshad Nayeri) writes:
  16.  
  17.    In article <C1E30F.vx@undergrad.math.waterloo.edu> papresco@undergrad.math.waterloo.edu (Paul Prescod) writes:
  18.  
  19. [STUFF DELETED]
  20.  
  21.  
  22.       Also is there anyway to auto-initialize/auto-destroy objects as in C++
  23.       with constructors and destructors?
  24.  
  25.    Not really (except for static initializations).  This is a matter of
  26.    religeous war among Modula-3 purists and people with C++ orientation.
  27.  
  28. I have been looking at the WeakRef interface. It would appear at first
  29. reading that this would provide a destructor-like functionality. I
  30. cant tell for sure if it would work with objects, but it would seem
  31. likely.
  32.  
  33. --
  34. John Redford (AKA GArrow) | 3,600 hours of tape.
  35. jredford@shearson.com     | 5 cans of Scotchguard.
  36.