[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: RE: Version control questions
At 04:40 PM 4/29/2005 +0100, Nick Cox wrote:
Neat. This raises some interesting possibilities. For example, suppose
you had a subprogram written in 8.2 and some equivalent and much faster
code written for 9.0 Mata. You could call whichever was appropriate for the
version being used.
In general, my advice is not to issue a program for
a version you don't have yourself, as you then
depend on others testing it.
In this case, you might try something like this
local oktype = cond(`c(version)' < 9, "integer", "real")
syntax ... , ... Level(`oktype' `c(level)')
My immediate concern, though, is just not unnecessarily limiting the
function of a program written in 8.2 when a 9.0 user is using it, e.g. let
the 9.0 user specify level 99.9 if that is what the user wants. It looks
like the above will do that, but I'll test it on 9.0 before including it in
my own code. Thanks.
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
* For searches and help try: