Version française
Home     About     Download     Resources     Contact us    
Browse thread
question on exceptions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Julien Verlaguet <Julien.Verlaguet@p...>
Subject: question on exceptions
I have the following peace of code

exception E;;
let x=E;;
exception E;;

I don't understand why the two following things are not equivalent :

# x=E;;
- : bool = true

# match x with
   | E -> true
   | _ -> false;;
- : bool = false

Is this normal ?

J