[
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: | Robert Fischer <robert@f...> |
| Subject: | Re: [Caml-list] Variant type with 'a type? |
Figured it out -- "type 'a maybe = Result of 'a | Exception of exn" Putting the tick-a before the "maybe" was nonintuitive to me. ~~ Robert. Robert Fischer wrote: > Is it possible to do a variant type along the lines of "type try = Result of 'a | Exception of exn"? > When I try that, I get an error saying "Unbound type parameter 'a". > > ~~ Robert. > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >