caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp>
To: inv2002@yandex.ru
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Problem with classes or i need help
Date: Sat, 15 Feb 2003 16:02:13 +0900	[thread overview]
Message-ID: <20030215160213L.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <3E4D0C5A.000016.04257@ariel.yandex.ru>

From: "inv2002" <inv2002@yandex.ru>

> and now is a second problem:
> 
>     method add_figure : 'a. (#figure as 'a) -> string -> unit = fun f k ->
>       Hashtbl.add figures k f#to_string
> 
> work correctly, but
> 
>     method add_figure : string -> 'a. (#figure as 'a) -> unit = fun k f ->
>       Hashtbl.add figures k f#to_string
> 
> return syntax error,

Only prefix quantification is allowed.

     method add_figure : 'a. string -> (#figure as 'a) -> unit = ...

Jacques Garrigue
-------------------
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


      reply	other threads:[~2003-02-15  7:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-05 21:40 inv2002
2003-02-05 16:31 ` [Caml-list] Ugly fonts in ocamlbrowser/editor Wai-Sun Chia
2003-02-06  6:35   ` Jacques Garrigue
2003-02-06  8:31     ` Wai-Sun Chia
2003-02-06  0:44 ` [Caml-list] Problem with classes or i need help Jacques Garrigue
2003-02-14 15:33   ` inv2002
2003-02-15  7:02     ` Jacques Garrigue [this message]

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=20030215160213L.garrigue@kurims.kyoto-u.ac.jp \
    --to=garrigue@kurims.kyoto-u.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=inv2002@yandex.ru \
    /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;
as well as URLs for NNTP newsgroup(s).