From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA07966; Sun, 9 Feb 2003 01:02:41 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 BAA07341 for ; Sun, 9 Feb 2003 01:02:40 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com (host29-68.pool80116.interbusiness.it [80.116.68.29]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h1902df05068 for ; Sun, 9 Feb 2003 01:02:39 +0100 (MET) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id 620F72724B; Sun, 9 Feb 2003 01:06:18 +0100 (CET) Message-ID: <3E459B7A.5000207@baretta.com> Date: Sun, 09 Feb 2003 01:06:18 +0100 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: it, en MIME-Version: 1.0 To: "altavillasalvatore@libero.it" Cc: caml-list Subject: Re: [Caml-list] ref References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk altavillasalvatore@libero.it wrote: > f,g := a; > !f, !g ;; You are asking too much of the assignment operator. You must remember that Ocaml does not support operator overloading, so you cannot define a val (:=) : 'a ref -> 'a -> unit and a val (:=) : ('a * 'b) ref -> ('a * 'b) -> unit This would require a form of "generic overloading" of (:=) over all tuple types. This is really a little too much, I think. BTW, are you sure you need references? Alex ------------------- 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