octave-maintainers
[Top][All Lists]
Advanced

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

Re: Keeping both tmpnam and tempname?


From: Mike Miller
Subject: Re: Keeping both tmpnam and tempname?
Date: Mon, 6 Oct 2014 21:21:31 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Oct 06, 2014 at 13:50:21 -0700, Rik wrote:
> Should Octave continue to keep both tmpnam and tempname in the global
> function namespace?  tempname is the function name that Matlab uses. 
> tmpnam is the C function name for the same behavior.  We have both and one
> is just an alias for the other.  It seems like we could unclutter things a
> bit by agreeing to just keep the Matlab compatibile name "tempname".

I'm usually in favor of keeping extra functions that match the standard
C library.

In this case, we have "tmpnam" which is providing the functionality of
both of the libc functions "tmpnam" (which is like Matlab's "tempname")
and "tempnam", depending on how it's called. Then we also have "mkstemp"
and "tmpfile". I'd vote for getting rid of "tmpnam" unless there are
strong reasons for keeping it for compatibility.

-- 
mike



reply via email to

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