[
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: | Mike Potanin <potanin@m...> |
| Subject: | Re: [Caml-list] Generic generic types. |
On Tue, 4 Feb 2003, Xavier Leroy wrote: > > Do OCaml support similar type? > > Not in the core language, but you can achieve similar effect with functors: > > module M(A: sig type 'a agregat end) = > struct > type refal_atom = > Char of char > | Int of int > | Term of refal_atom A.agregat > end > > Hope this answers your question, Thank you! It's what I wanted. > > - Xavier Leroy ------------------- 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