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 MAA14023; Thu, 23 Oct 2003 12:38:08 +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 MAA26691 for ; Thu, 23 Oct 2003 12:38:07 +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 h9NAc6111654 for ; Thu, 23 Oct 2003 12:38:06 +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 h9NAbb8V002351 for ; Thu, 23 Oct 2003 12:37:38 +0200 Message-ID: <3F97AF71.4020202@baretta.com> Date: Thu, 23 Oct 2003 12:37:37 +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: [Caml-list] Ocaml 3.07+2: no support for optional arguments to classes 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 3.07:01 netcgi:01 ocamlc:01 camlp:01 bool:01 ocaml:01 alex:01 alex:01 parser:02 config:02 config:02 compile:02 string:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 Apparently neither the ocamlc parser nor camlp4o accept optional arguments to classes. Is this in any way desirable or is this just an ommission which could be fixed in the next release? 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