Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Questions about types and objects
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Questions about types and objects
On Tue, Feb 03, 2004 at 12:07:31PM +1000, Richard Cole wrote:
> From an expression:
> 
>      diagram#make_from_hasse lattice;

You need to upcast it.  I've never really understood why this is
necessary.

diagram#make_from_hasse (lattice :> abstract_hasse_diagram);

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
Perl4Caml lets you use any Perl library in your type-safe Objective
CAML programs. http://www.merjis.com/developers/perl4caml/

-------------------
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