<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/07/a2eea2ec85eb7690de7274a72302113e"
  from="Brian Naylor &lt;bwv211mail@y...&gt;"
  author="Brian Naylor"
  date="2002-07-24T04:26:37"
  subject="[Caml-list] functor question"
  prev="2002/07/0c313e90b642f8f12bb25f25ea9fbcfd"
  next="2002/07/6632a9bcd4f6d23e9c5477c5869aaa1b"
  next-in-thread="2002/07/c2036a4fb83c16cbfab4d7aa32ec04ed"
  prev-thread="2002/07/8bae1873738de0a0761c052e27155d5e"
  next-thread="2002/07/d2430a228176c32b53caed6da8161d5d"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] functor question">
<msg 
  url="2002/07/a2eea2ec85eb7690de7274a72302113e"
  from="Brian Naylor &lt;bwv211mail@y...&gt;"
  author="Brian Naylor"
  date="2002-07-24T04:26:37"
  subject="[Caml-list] functor question">
<msg 
  url="2002/07/c2036a4fb83c16cbfab4d7aa32ec04ed"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2002-07-25T09:21:40"
  subject="Re: [Caml-list] functor question">
<msg 
  url="2002/07/472b2ee3456de1732c8ab79ad90e48ff"
  from="Thorsten Ohl &lt;ohl@p...&gt;"
  author="Thorsten Ohl"
  date="2002-07-26T21:32:44"
  subject="[Caml-list] Functors, Modules and Indirections">
</msg>
</msg>
</msg>
</thread>

<contents>
Is there any efficiency difference between:

module Foo = Make (Bar) (Baz)

and

module Both = struct module Bar = Bar module Baz = Baz end
module Foo = Make (Both)

In other words, is it better to coalesce structures into a single functor
application rather than to apply multiple functors?  Do I pay more indirection
costs in the first case?  Thanks.


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
-------------------
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

</contents>

</message>

