octave-maintainers
[Top][All Lists]
Advanced

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

Re: Matlab has implemented flip after only 10 years - deprecate flipdim


From: Olaf Till
Subject: Re: Matlab has implemented flip after only 10 years - deprecate flipdim
Date: Tue, 23 Sep 2014 09:53:15 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Sep 23, 2014 at 01:31:38AM +0100, Carnë Draug wrote:
> Hi
> 
> during the codesprint this weekend (before I figured that the subject
> was going to increase line coverage), I added a new function, flip,
> and deprecated flipdim [1]. The function flip is exactly the same as
> flipdim, the only difference being that the first exists in Matlab
> (since R2014a - only 10 years after Octave).
> 
> I'm kinda regretting deprecating it because package maintainers will
> not have a chance to write code that works in both 4.0.X and 4.2.X
> without triggering warnings or errors.

What about checking Octave version in PKG_ADD, and making flip a
handle to flipdim in case of < 4.2.X, or even making something like
flip_package_internal a handle either to flip or flipdim, to avoid
potential name clashes with a users flip?

Olaf

-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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