octave-maintainers
[Top][All Lists]
Advanced

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

Re: Octave's fstat vs. statistics package fstat


From: Michael D Godfrey
Subject: Re: Octave's fstat vs. statistics package fstat
Date: Tue, 21 Dec 2010 13:13:40 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

On 12/21/2010 12:38 PM, John W. Eaton wrote:
Now that Octave will warn about package functions that hide core
functions, anyone who installs the statistics package from Octave
Forge will get a message about the fstat function from the package
shadowing Octave's fstat function even though Octave's fstat function
is deprecated.

In this particular case, maybe we should just remove fstat instead of
deprecating it and keeping it around for a release cycle.  It was
likely not used much, and it is trivial to fix code that did use it
(just call stat instead of fstat).
Not quite true.  stat("file") requires the file name, but fstat(fid) requires
a file descriptor.  Is there a way of recovering the filename given the fid?
I remember having a problem with this some time ago, but just used
fstat to solve it.
Or, since I'm not sure it makes sense to get a warning about hiding a
function that will eventually be removed anyway, should we take a more
general approach and change Octave to not warn when a deprecated
fucntion is hidden by some other function in the path?

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]