Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: private vs public mata (user written) functions

From   "Zurab Sajaia" <>
Subject   st: private vs public mata (user written) functions
Date   Thu, 13 Jul 2006 15:14:16 -0400

Hi everybody,

While trying to minimize unnecessary stuff put in my mata library I ran into one question and would appreciate to have a clear answer for future work (kind of answer usually Bill would provide, thanks again for your time Bill)

I have a "public" mata function that is used by a stata command (.ado file). My mata function in turn uses two other "private" mata functions. Either I'm making some other mistake or all three must be added to a library for everything to work and then we have a situation that two "private" functions, which are no use outside of main "public" one are also visible. I know that following Stata's open-source spirit I might end up distributing the un-compiled code anyways but wanted to know for sure if the private/public function setup is possible.


* For searches and help try:

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