Dear All
When writing a Stata code I want to dump the description of the current object.
If the object already exists, I can do it with:
But now I want to do it in the constructor, and at that point Stata doesn't seem to allow to refer to the object by name yet:
Also, a solution could have been a special alias word, present in other languages, like "this" in C#, or "self" in Python. But there seems to be no equivalent in Stata.
Various AI models either indicated that there is no equivalent or suggested trying "classutil des ." which of course doesn't work:
Any advice or a workaround?
When writing a Stata code I want to dump the description of the current object.
If the object already exists, I can do it with:
Code:
classutil des .myobj
Code:
myobj: object not found r(111);
Various AI models either indicated that there is no equivalent or suggested trying "classutil des ." which of course doesn't work:
Code:
"." invalid object name r(198);

Comment