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 RAA02958; Thu, 23 Oct 2003 17:47:35 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA10827 for ; Thu, 23 Oct 2003 17:47:34 +0200 (MET DST) Received: from flyingtuxman.baretta.com ([213.255.109.130]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9NFlX124660 for ; Thu, 23 Oct 2003 17:47:33 +0200 (MET DST) Received: from baretta.com (flyingtuxman.baretta.com [127.0.0.1]) by flyingtuxman.baretta.com (8.12.8/8.12.8) with ESMTP id h9NFl48V003222 for ; Thu, 23 Oct 2003 17:47:05 +0200 Message-ID: <3F97F7F7.10607@baretta.com> Date: Thu, 23 Oct 2003 17:47:03 +0200 From: Alex Baretta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030617 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ocaml Subject: Re: [Caml-list] Ocaml 3.07+2: no support for optional arguments to classes References: <3F97AF71.4020202@baretta.com> <20031023121123.GA28879@bourg.inria.fr> In-Reply-To: <20031023121123.GA28879@bourg.inria.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; baretta:01 baretta:01 caml-list:01 3.07:01 basile:01 netcgi:01 netcgi:01 reusing:01 pervasives:01 stupid:01 bugged:01 bool:01 bool:01 ocaml:01 alex:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Basile Starynkevitch wrote: > On Thu, Oct 23, 2003 at 12:37:37PM +0200, Alex Baretta wrote: > >>I am unable to get the following code to compile. >> >>class xcaml_conf : ?string -> ?xcaml_configuration -> >>Netcgi_types.cgi_activation -> >>object >> method config : xcaml_configuration >> method cgi : # Xcaml_cgi.xcaml_cgi_activation >> method mem : Parse_config.varname -> bool >> method argument_value : Parse_config.varname -> string >>end >> > class xcaml_conf : ?name: string -> ?config: xcaml_configuration -> > Netcgi_types.cgi_activation -> > object > method config : xcaml_configuration > method cgi : # Xcaml_cgi.xcaml_cgi_activation > method mem : Parse_config.varname -> bool > method argument_value : Parse_config.varname -> string > end > > An additional hint is: avoid reusing names from Pervasives (like int) as > optional labels. Even if it is permitted, I believe it is errorprone. > > Regards. Duh... I feel so stupid. I'm sorry for having bugged the list. 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