caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] is there a runtime cost for this
@ 2014-02-04  1:41 Francois Berenger
  2014-02-04 10:20 ` Goswin von Brederlow
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Francois Berenger @ 2014-02-04  1:41 UTC (permalink / raw)
  To: caml-list

Hello,

In a .ml file I'd like to write something like this
in order to factorize some code:

let f x y z = [...] some code [...]

module Something = struct
     let g = f
end

module Something_else = struct
     let h = f
end

Is calling Something.g or Something_else.h as efficient
as calling f directly?

-- 
Best regards,
Francois Berenger.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-04 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04  1:41 [Caml-list] is there a runtime cost for this Francois Berenger
2014-02-04 10:20 ` Goswin von Brederlow
2014-02-04 12:33 ` Gerd Stolpmann
2014-02-04 16:53 ` rixed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).