Version française
Home     About     Download     Resources     Contact us    
Browse thread
let x = ... in object ...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Martin Jambon <martin.jambon@e...>
Subject: Re: [Caml-list] let x = ... in object ...
Guillaume Hennequin wrote:
> 
> 
> 
>     # class a = let () = print_endline "hello" in object end;;
>     hello
>     class a : object  end
> 
> 
>     Maybe you mean the following:
> 
> 
> ?

I was just pointing out that "class a = let x = ... in object ... end"
creates x once and for all when the class is defined, and x will therefore not
be GC'ed because of the language definition, not because of its implementation.


Martin
-- 
http://mjambon.com/