Browse thread
[Caml-list] Problem with classes or i need help
-
inv2002
-
Jacques Garrigue
-
inv2002
- Jacques Garrigue
-
inv2002
- Wai-Sun Chia
-
Jacques Garrigue
[
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: | Jacques Garrigue <garrigue@k...> |
| Subject: | Re: [Caml-list] Problem with classes or i need help |
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