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

Re: st: RE: what is c_local?


From   "R. Allan Reese" <[email protected]>
To   [email protected]
Subject   Re: st: RE: what is c_local?
Date   Fri, 12 Dec 2003 14:05:52 +0000

On Fri, 12 Dec 2003 13:25:42 -0000 Nick Cox <[email protected]> 
wrote:
> Sometimes, it is nice to be able to
> have a way round the rule and to have
> a way of passing information back
> to a calling program. (There are of course
> other ways of doing this, not least globals.)
> 
> What the -c_local- does is carry out
> a macro definition in the calling program's
> space. So the -display- will show 2.
> 
> Warning: this is dangerous unless you really understand it.

As described, it looks not only dangerous but pointless what happens 
if pest is called from another routine without a defined kardos?
c_local looks "nowt nor summit".  It looks similar to Fortran's
block equivalence and might have a marginal efficiency gain at 
run-time, but such effects should be achieved by passing parameters
and returning results. 

--------------------------------------------------------------
R Allan Reese                      Email: [email protected]
Graduate School
University of Hull
Tel +44 1482 466845                       Fax: +44 1482 466436

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index