Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.