Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* question on exceptions
@ 2005-05-13 13:34 Julien Verlaguet
  2005-05-16  8:43 ` [Caml-list] " Johann Spies
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Verlaguet @ 2005-05-13 13:34 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-16  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13 13:34 question on exceptions Julien Verlaguet
2005-05-16  8:43 ` [Caml-list] " Johann Spies

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox