Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] initializers and destructor
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-04-01 (07:45)
From: Stefano Zacchiroli <zack@c...>
Subject: Re: [Caml-list] initializers and destructor
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?

Thanks again.

Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy | ICQ# 33538863 |
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: