[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: RE: Version control questions
What you have, on the face of it, will
work fine under both 8.2 and 9, without
detectable loss to either group of users.
> At 12:12 PM 4/29/2005 -0500, email@example.com wrote:
> >In Stata 9 you say
> > syntax ... , ... Level(cilevel) ...
> >This is better then saying
> > syntax ... , ... Level(real `c(level)') ...
> >because the -cilevel- option directive takes care of checking for
> >problems such as negative numbers, ...
> Thanks Ken. So, to modify Nick's example, if my program is
> written in 8.2
> but I want to let the 9.0 users use the new level options, could I say
> program myprog
> version 8.2
> local oktype = cond(`c(version)' < 9, "integer `c(level)'",
> syntax ... , ... Level(`oktype')
> Eventually I may write a version for Stata 9, but in the
> meantime it seems
> a shame to cripple the program for Stata 8 users if all you
> are doing is
> adding support for the new level options. There are lots of other
> user-written programs that use integer levels, so programmers
> who are so
> inclined could make one quick change in them without having
> to set version to a higher number.
* For searches and help try: