[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- 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