A linked point is that using a tempname
for a scalar removes the possibility of name
conflict and reduces the amount of stuff
left lying around. Conversely, if you want
to leave stuff lying around, use -return-
or -ereturn-.
Nick
[email protected]
Nick Cox
> A guess: If you have a variable -m1- then
>
> di m1
>
> will be interpreted as
>
> di m1[1]
>
> rather than
>
> di scalar(m1)
>
> The binding -scalar()- is needed in cases of ambiguity.
*
* 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/