[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New Function: verlessthan.m
From: |
David Bateman |
Subject: |
Re: New Function: verlessthan.m |
Date: |
Thu, 20 Mar 2008 17:37:37 +0100 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20080306) |
John W. Eaton wrote:
> On 20-Mar-2008, David Bateman wrote:
>
> | This is true for compatibility with Matlab. However, it might be useful
> | in itself within Octave code to have a check on a package version
> | number. Whether that should be done with a function with the same name
> | as the equivalent Matlab function is a different question..
>
> I don't think pkg.m is big enough yet
% ls -l scripts/pkg/pkg.m
-rw-r----- 1 adb014 ecr 68284 2008-03-06 14:51 scripts/pkg/pkg.m
So I hope that was a joke ;-)
> , so maybe this functionality
> should go there? Perhaps
>
> pkg require PACKAGE VERSION
>
> to mean that the version for PACKAGE must be at least VERSION (or
> perhaps exactly the specified version if the version string begins
> with "=").
>
> However, I think feature tests would be better than comparing version
> numbers.
>
That was sort of what I meant when I wasn't sure where to put the
feature.. Not sure I can be bothered supplying a patch myself as I tend
to always have the latest of all Octave packages installed and so the
feature is kind of redundant for me..
D.
> jwe
>
>
--
David Bateman address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary