Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Variant type with 'a type?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-06-10 (02:29)
From: Robert Fischer <robert.fischer@s...>
Subject: Variant type with 'a type?
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.