Ilya Zakharevich on Sat, 31 May 2003 14:28:11 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: .gprc


On Sat, May 31, 2003 at 08:15:37PM +0200, Karim BELABAS wrote:
> > d) It is possible to get an array [2,4,5] for GP/PARI version 2.4.5
> >    from the GP/PARI API?  Then one could delegate version-dependent
> >    processing to the read() directives...

> It would clutter the name space,

As will any other functionality; what is your point here?

> and I'm not sure this would really be
> useful. Besides, there's the obvious
> 
> vers() =
> {
>   eval( Str("[",
>           extern("gp --version-short 2>&1 |
>               sed -e 's/\\./,/g' -e 's/^/\"/' -e 's/$/\"/'"),  "]") )
> }

??? What use is it if it does not work everywhere?  E.g., command.com does
not support 2>&1; sed is not guarantied to be present etc.

Ilya