From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA09403 for caml-redistribution; Tue, 18 Mar 1997 10:39:03 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA07263 for ; Tue, 18 Mar 1997 08:44:22 +0100 (MET) Received: from hplb.hpl.hp.com (hplb.hpl.hp.com [15.255.59.2]) by concorde.inria.fr (8.7.6/8.7.3) with ESMTP id IAA10497 for ; Tue, 18 Mar 1997 08:43:54 +0100 (MET) Received: from betze.bbn.hp.com by hplb.hpl.hp.com; Tue, 18 Mar 1997 07:43:51 GMT Received: from localhost (localhost [127.0.0.1]) by betze.bbn.hp.com with SMTP (8.7.1/8.7.1) id IAA22036 for ; Tue, 18 Mar 1997 08:43:50 +0100 (MET) Message-Id: <199703180743.IAA22036@betze.bbn.hp.com> X-Authentication-Warning: betze.bbn.hp.com: Host localhost [127.0.0.1] didn't use HELO protocol X-Mailer: exmh version 1.6.4 10/10/95 To: caml-list@pauillac.inria.fr Subject: Re: Weak pointers X-Face: 7'_lwZ-\~X.Q]-O#D;ju@c|HTi9[>\U8jV5(8sQpm)twOCgN.y]9s:L}A1_]h}_LHF@U5!2 5~FJ"9)`@~BEg9d;ftlb:bj9N>RTv0[VvZe7EMMB:$9hUc]&d9VN? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 18 Mar 1997 07:43:49 +0000 From: Kohler Markus Sender: weis I didn't take a look at Java's weak pointers, but I assume it's same as in Smalltalk. In Smalltalk a weak pointer is not counted when the garbage checks if the object is still referenced. That means if you have only weak pointers to an object and the application needs memory it will be garbage collected. In Smalltalk theres is a correspinding concept called "finalization". If a weak object is garbage collected a finalize message is called. This is used in Smalltalk to free external resources like windows. Markus -- +----------------------------------------------------------------------------+ | Markus Kohler Hewlett-Packard GmbH | | Software Engineer Network & System Management Division| | IT/E Success Team | +----------------------------------------------------------------------------+