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" <zsajaia@hotmail.com>
To   statalist@hsphsun2.harvard.edu
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.

Thanks,
Zurab


*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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