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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: james woodyatt <jhw@w...>
Subject: Re: [Caml-list] functional objects
On Sunday, Oct 20, 2002, at 23:55 US/Pacific, Didier Remy wrote:
> [I wrote:]
>> What would that look like in the multiple inheritance case?
>
> Have you really tried this exercise yourself before asking for help?

I'm very sorry.  Sincere apologies.

I mistakenly assumed, since the documentation does not explicitly say 
that the inherit clause defines a constructor method named after the 
superclass, that your examples would not compile.  Surprisingly, they 
actually do in ocaml-3.06.  It's not the most pleasant syntax I could 
imagine, but I'm very pleased to see that it's already possible to do 
what I want.

I have a suspicion, though, that the implementation makes a lot of 
temporary copies in this process.  Is that so?

Oh, never mind.  I'll find out for myself.  Thanks for all your help.


-- 
j h woodyatt <jhw@wetware.com>
markets are only free to the people who own them.

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