From: Gerd Stolpmann <gerd@gerd-stolpmann.de>
To: Remi VANICAT <remi.vanicat@labri.u-bordeaux.fr>, caml-list@inria.fr
Subject: Re: problem with optional arguments
Date: Thu, 21 Sep 2000 20:59:29 +0200 [thread overview]
Message-ID: <0009212101050J.09664@ice> (raw)
In-Reply-To: <ya366nqq0qb.dlv@serveur2-1.labri.u-bordeaux.fr>
On Wed, 20 Sep 2000, Remi VANICAT wrote:
>then there is another problem :
>
>class test2 ?(a=0) () =
> object
> val a = abs a
> method a = a
> method strange x = new test2 ~a: x ()
> end
>
>don't work, but i don't see realy why (the message of error is :
>
>The expression "new test2" has type ?a:int -> unit -> test2
>but is used with type 'a -> unit -> 'b
>)
See bug # 151,
http://caml.inria.fr/bin/caml-bugs/fixed?id=151;page=8;user=guest
--
----------------------------------------------------------------------------
Gerd Stolpmann Telefon: +49 6151 997705 (privat)
Viktoriastr. 100
64293 Darmstadt EMail: gerd@gerd-stolpmann.de
Germany
----------------------------------------------------------------------------
next prev parent reply other threads:[~2000-09-21 19:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-20 10:38 Dr. Wolfgang Gehrke
2000-09-20 20:15 ` Remi VANICAT
2000-09-21 18:59 ` Gerd Stolpmann [this message]
2000-09-21 0:08 ` Jacques Garrigue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0009212101050J.09664@ice \
--to=gerd@gerd-stolpmann.de \
--cc=caml-list@inria.fr \
--cc=remi.vanicat@labri.u-bordeaux.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox