Browse thread
[Caml-list] Ocaml 3.07+2: no support for optional arguments to classes
-
Alex Baretta
-
Basile Starynkevitch
- Alex Baretta
-
Basile Starynkevitch
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Alex Baretta <alex@b...> |
| Subject: | Re: [Caml-list] Ocaml 3.07+2: no support for optional arguments to classes |
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