home *** CD-ROM | disk | FTP | other *** search
- 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
- From: dagenais@vlsi (Michel Dagenais)
- Newsgroups: comp.lang.modula3
- Subject: Re: references, objects & m3
- Message-ID: <DAGENAIS.93Jan27094425@pollux.vlsi>
- Date: 27 Jan 93 14:44:21 GMT
- References: <C1BsMI.5Ay@undergrad.math.waterloo.edu> <MOSS.93Jan24164146@CRAFTY.cs.cmu.edu>
- <C1E30F.vx@undergrad.math.waterloo.edu>
- <FN00.93Jan25085601@tahoe.gte.com> <1993Jan25.191726.6722@shearson.com>
- Sender: news@vlsi.polymtl.ca (USENET News System)
- Organization: Ecole Polytechnique
- Lines: 30
- In-Reply-To: jredford@shearson.com's message of 25 Jan 93 19:17:26 GMT
-
-
- > I have been looking at the WeakRef interface. It would appear at first
- > reading that this would provide a destructor-like functionality. I
- > cant tell for sure if it would work with objects, but it would seem
- > likely.
-
- Indeed, these guys at DEC SRC are incredible. From version 2.07 to version
- 2.11, besides a lot of interesting applications like Zeus/Mentor, they
- solved probably the two most noteworthy problems that i had with Modula 3
- (and that most other popular languages are not close to address for some
- time). (Note that i have not tried much these new features yet).
-
- For highly interactive applications, long garbage collections can be a
- nuisance. The incremental garbage collector just appeared to solve this!
-
- The other difficulty was "finalization/destructors" as discussed in this
- thread. The weakref library is very simple yet solves elegantly the
- problem. It handles correctly finalization order and resurected objects. We
- needed this for cleaning up windows, communication channels, telling remote
- objects that their proxy was not used anymore, removing collected
- character bitmaps from the character cache... Many thanks!
-
- --
- ---------------------------------------------------------------------
-
- Prof. Michel Dagenais dagenais@vlsi.polymtl.ca
- Dept of Electrical and Computer Eng.
- Ecole Polytechnique de Montreal tel: (514) 340-4029
-
- ---------------------------------------------------------------------
-