Browse thread
[Caml-list] initializers and destructor
-
Stefano Zacchiroli
-
Remi VANICAT
-
Stefano Zacchiroli
- Remi VANICAT
-
Stefano Zacchiroli
-
Remi VANICAT
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Remi VANICAT <vanicat@l...> |
| Subject: | Re: [Caml-list] initializers and destructor |
Stefano Zacchiroli <zack@cs.unibo.it> writes: > On Sun, Mar 31, 2002 at 11:41:23PM +0200, Remi VANICAT wrote: > > there is the finalise function in the module Gc of the standard > > library. > > Thanks, this is ok for me. > > Anyway you probably agree with me that this kind of destructor are a bit > tricky: what about adding some syntactic sugar to hide the Gc usage to > who wants to use destructors? In that way we can also avoid the problem > of wrong usage of "finalise" using let binding correctly. > > What do you think about it? In fact, it should be more than syntactic sugar, because of the pitfall of finalise. So may be it would be useful, but there is a lot of work for it. -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners