octave-maintainers
[Top][All Lists]
Advanced

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

Re: octave_value_base::print


From: Carlo De Falco
Subject: Re: octave_value_base::print
Date: Thu, 20 Aug 2015 10:14:10 +0000

On 19 Aug 2015, at 20:57, John W. Eaton <address@hidden> wrote:

> On 08/19/2015 09:54 AM, Carlo De Falco wrote:
>> Hi,
>> 
>> In version 3.8 the method octave_value_base::print was declared as:
>> http://octave.org/doxygen/3.8/d3/d35/classoctave__value.html#ae832202ed42066e6cd2b113abcec2f2d
>> 
>> void octave_value::print ( std::ostream &os, bool pr_as_read_syntax = false) 
>> const
>> 
>> while in 4.0 and 4.1 it is declared as:
>> http://octave.org/doxygen/4.0/d6/d68/classoctave__base__value.html#acb77ca3a656d6754ca4461560c9a5983
>> 
>> 
>> void octave_base_value::print (std::ostream & os, bool pr_as_read_syntax = 
>> false)
>> 
>> what was the reason for removing "const"?
>> this has given me some compatibility trouble for some packages,
>> I can easily work around it, but I am curious why should the print method be 
>> allowed to be non const?
> 
> As I recall, it was needed for classdef.

OK, I suspected that, thanks.

> Here is the changeset:
> 
>  http://hg.savannah.gnu.org/hgweb/octave/rev/bcd71a2531d3
> 
> Would it make sense (and is it possible) to provide const and non-const 
> versions?

I think it is possible but I'm not sure whether it makes sense.
If you think it does I can prepare a changeset.

> jwe

c.


reply via email to

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