Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: inline mata vs mo/mlib?

From   Kit Baum <>
Subject   st: inline mata vs mo/mlib?
Date   Wed, 10 Aug 2005 06:40:28 -0400

A SSC contributor has raised an interesting question. Say that you have an ado-file that calls one (or several) of your own mata functions. You could place those functions in-line in the ado-file, or you could compile them into .mo and put them into an .mlib.

is there any real downside to distributing a single ado-file containing the mata functions inline versus distributing the .ado and .mlib (and presumably the .mata if you want to expose the code)? The inline code will be compiled when loaded, but once per session.


Kit Baum, Boston College Economics

* For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index