Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Re: OCAML Downcasting?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Marcin 'Qrczak' Kowalczyk <qrczak@k...>
Subject: Re: [Caml-list] Re: OCAML Downcasting?
Brian Hurt <bhurt@spnz.org> writes:

>> Apply this reasoning to the exn type. Why don't you define all exn
>> constructors in one place?
>
> Ignoring the fact that exceptions are built into the language, I'd read
> section 4.2 "Polymorphic Variants" of the Ocaml language manual for how to
> get around this.

It helps only in some cases. In particular it's not expressive enough
to replace exn.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners