<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/6ac7b3927a502e3a4402365b1ea837cc"
  from="Alex Baretta &lt;alex@b...&gt;"
  author="Alex Baretta"
  date="2003-10-23T15:47:35"
  subject="Re: [Caml-list] Ocaml 3.07+2: no support for optional arguments to classes"
  prev="2003/10/7fe3f20204f659363005c0e7519c1efd"
  next="2003/10/524383af3fd063e600f8875e23deb14b"
  prev-in-thread="2003/10/7fe3f20204f659363005c0e7519c1efd"
  prev-thread="2003/10/b81c85a6b4a6f8d67a06fd08181e888f"
  next-thread="2003/10/31fc9734cb77074b2b1b48ffdc5de321"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Ocaml 3.07+2: no support for optional arguments to classes">
<msg 
  url="2003/10/e3a4825e2cfa9c175bbf57ff30c4ac42"
  from="Alex Baretta &lt;alex@b...&gt;"
  author="Alex Baretta"
  date="2003-10-23T10:38:08"
  subject="[Caml-list] Ocaml 3.07+2: no support for optional arguments to classes">
<msg 
  url="2003/10/7fe3f20204f659363005c0e7519c1efd"
  from="Basile Starynkevitch &lt;basile.starynkevitch@i...&gt;"
  author="Basile Starynkevitch"
  date="2003-10-23T12:11:25"
  subject="Re: [Caml-list] Ocaml 3.07+2: no support for optional arguments to classes">
<msg 
  url="2003/10/6ac7b3927a502e3a4402365b1ea837cc"
  from="Alex Baretta &lt;alex@b...&gt;"
  author="Alex Baretta"
  date="2003-10-23T15:47:35"
  subject="Re: [Caml-list] Ocaml 3.07+2: no support for optional arguments to classes">
</msg>
</msg>
</msg>
</thread>

<contents>
Basile Starynkevitch wrote:
&gt; On Thu, Oct 23, 2003 at 12:37:37PM +0200, Alex Baretta wrote:
&gt; 
&gt;&gt;I am unable to get the following code to compile.
&gt;&gt;
&gt;&gt;class xcaml_conf : ?string -&gt; ?xcaml_configuration -&gt; 
&gt;&gt;Netcgi_types.cgi_activation -&gt;
&gt;&gt;object
&gt;&gt;  method config : xcaml_configuration
&gt;&gt;  method cgi : # Xcaml_cgi.xcaml_cgi_activation
&gt;&gt;  method mem : Parse_config.varname -&gt; bool
&gt;&gt;  method argument_value : Parse_config.varname -&gt; string
&gt;&gt;end
&gt;&gt;

&gt; class xcaml_conf : ?name: string -&gt; ?config: xcaml_configuration -&gt; 
&gt;   Netcgi_types.cgi_activation -&gt;
&gt;    object
&gt;     method config : xcaml_configuration
&gt;     method cgi : # Xcaml_cgi.xcaml_cgi_activation
&gt;     method mem : Parse_config.varname -&gt; bool
&gt;     method argument_value : Parse_config.varname -&gt; string
&gt;   end
&gt; 
&gt; An additional hint is: avoid reusing names from Pervasives (like int) as
&gt; optional labels. Even if it is permitted, I believe it is errorprone.
&gt; 
&gt; 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

</contents>

</message>

