Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Functors
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-03 (00:21)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Functors
On Mon, 2004-05-03 at 02:49, Jon Harrop wrote:
> On Sunday 02 May 2004 15:12, skaller wrote:
> > ...
> > When you instantiate a Set.Make .. you only have
> > the interface. Hard to inline without actually having
> > the body of the functor..
> Sure, so you can't do it if you're creating a DLL for the OS to handle. But if 
> you're making an executable, as I suspect most of us are, then you can do it 
> (perhaps at compile-time, definitely by link-time).

Separate compilation is a tradeoff between
fast building and fast executables.

Ocaml is famous for amortising costs in a sensible
way. In the few cases the costs were critical,
they've been fixed: eg arrays of unboxed floats.

John Skaller,
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: