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

Re: st: RE: what is c_local?


From   wgould@stata.com (William Gould, Stata)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: what is c_local?
Date   Fri, 12 Dec 2003 08:54:04 -0600

Kardos László <kardosl@delfin.unideb.hu> asked, "What is c_local?", Nick Cox
<n.j.cox@durham.ac.uk> replied in great, descriptive detail, and Allan Reese
<R.A.Reese@hull.ac.uk> then wrote,

> As described, it looks not only dangerous but pointless [...]

The point of c_local is to be a tool for developing programming-language 
statements.  For instance, imagine I wanted to create a new command, 

       bill_gould x : ...

to be used in other programs.  The point of the new -bill_gould- command is to
assign something to the local macro x.  Inside bill_gould.ado, I would code
the line

       c_local `1' ...

Thus assigning back to the local macro in the caller's space.

-- Bill
wgould@stata.com
*
*   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