[
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: | Alessandro Baretta <alex@b...> |
| Subject: | Re: [Caml-list] What about polymorphic methods? |
Jacques Garrigue wrote:
> Indeed, iterators are one of the major reasons to have polymorphic
> methods in ocaml (the other one being implicit subtyping of
> arguments). They are already in CVS, and will be present in ocaml
> 3.05.
>
> With the CVS version, you would have to write
>
> method left_iter : 'b. ('a -> 'b) -> 'b list = fun f -> ...
> method right_iter : 'b. ('a -> 'b) -> 'b list = fun f -> ...
Great! That's what I need! Two questions now: how soon will
this be officially released? And, is the CVS version stable
enough for production quality code?
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