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 XAA18486; Fri, 7 Nov 2003 23:27:11 +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 XAA17992 for ; Fri, 7 Nov 2003 23:27:10 +0100 (MET) Received: from cs.uoregon.edu (vitalstatistix.cs.uoregon.edu [128.223.4.19]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hA7MR8116872 for ; Fri, 7 Nov 2003 23:27:09 +0100 (MET) Received: from cs.uoregon.edu (chrisg@dyna6-160.cs.uoregon.edu [128.223.6.160]) by cs.uoregon.edu (8.12.10/8.12.10) with ESMTP id hA7MR5P3021903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 7 Nov 2003 14:27:06 -0800 (PST) Message-ID: <3FAC1C3B.6070100@cs.uoregon.edu> Date: Fri, 07 Nov 2003 14:27:07 -0800 From: Chris GauthierDickey User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031105 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] labels in records? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; chris:01 chris:01 labelled:01 int:01 int:01 labels:01 syntax:02 syntax:02 let:04 let:04 i'd:06 specify:06 type:07 type:07 function:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is it possible to use a labelled function as a member of a record? In other words: let f ~x = x + 1 type { g: ~x:int -> int } ^ syntax error I get a syntax error when trying to specify the type for the record. I'd like the above to work so I can do this: let r = { g = f } Thanks, Chris G. ------------------- 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