octave-maintainers
[Top][All Lists]
Advanced

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

Array constructor backward compatibility problem


From: John W. Eaton
Subject: Array constructor backward compatibility problem
Date: Thu, 20 Jan 2011 00:18:35 -0500

On 19-Jan-2011, John W. Eaton wrote:

| On 19-Jan-2011, John W. Eaton wrote:
| 
| I also noticed that we have
| 
|   void resize1 (octave_idx_type n, const T& rfv = resize_fill_value ());
| 
|   void resize (octave_idx_type n) GCC_ATTR_DEPRECATED
| 
|   void resize (octave_idx_type nr, octave_idx_type nc, 
|                const T& rfv = resize_fill_value ());
| 
|   void resize (const dim_vector& dv, const T& rfv = resize_fill_value ());
| 
| For consistency, maybe we should deprecate
| 
|   void resize (octave_idx_type nr, octave_idx_type nc, 
|                const T& rfv = resize_fill_value ());
| 
| as it can be replaced with
| 
|   resize (dim_vector (nr, nc), rfv)
| 
| Comments?

I checked in a changeset:

  http://hg.savannah.gnu.org/hgweb/octave/rev/a83bad07f7e3

jwe


reply via email to

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