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

  1. Path: sparky!uunet!europa.eng.gtefsd.com!emory!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!poly-vlsi!usenet!dagenais
  2. From: dagenais@vlsi (Michel Dagenais)
  3. Newsgroups: comp.lang.modula3
  4. Subject: Re: references, objects & m3
  5. Message-ID: <DAGENAIS.93Jan27094425@pollux.vlsi>
  6. Date: 27 Jan 93 14:44:21 GMT
  7. References: <C1BsMI.5Ay@undergrad.math.waterloo.edu> <MOSS.93Jan24164146@CRAFTY.cs.cmu.edu>
  8.     <C1E30F.vx@undergrad.math.waterloo.edu>
  9.     <FN00.93Jan25085601@tahoe.gte.com> <1993Jan25.191726.6722@shearson.com>
  10. Sender: news@vlsi.polymtl.ca (USENET News System)
  11. Organization: Ecole Polytechnique
  12. Lines: 30
  13. In-Reply-To: jredford@shearson.com's message of 25 Jan 93 19:17:26 GMT
  14.  
  15.  
  16. >   I have been looking at the WeakRef interface. It would appear at first
  17. >   reading that this would provide a destructor-like functionality. I
  18. >   cant tell for sure if it would work with objects, but it would seem
  19. >   likely.
  20.  
  21. Indeed, these guys at DEC SRC are incredible. From version 2.07 to version
  22. 2.11, besides a lot of interesting applications like Zeus/Mentor, they
  23. solved probably the two most noteworthy problems that i had with Modula 3 
  24. (and that most other popular languages are not close to address for some
  25. time). (Note that i have not tried much these new features yet).
  26.  
  27. For highly interactive applications, long garbage collections can be a
  28. nuisance. The incremental garbage collector just appeared to solve this!
  29.  
  30. The other difficulty was "finalization/destructors" as discussed in this
  31. thread. The weakref library is very simple yet solves elegantly the
  32. problem. It handles correctly finalization order and resurected objects. We
  33. needed this for cleaning up windows, communication channels, telling remote
  34. objects that their proxy was not used anymore, removing collected
  35. character bitmaps from the character cache... Many thanks!
  36.  
  37. --
  38. ---------------------------------------------------------------------
  39.  
  40. Prof. Michel Dagenais                dagenais@vlsi.polymtl.ca
  41. Dept of Electrical and Computer Eng.
  42. Ecole Polytechnique de Montreal            tel: (514) 340-4029
  43.  
  44. ---------------------------------------------------------------------
  45.