octave-maintainers
[Top][All Lists]
Advanced

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

octave_base_value::print const-ness and method overload


From: Michael Goffioul
Subject: octave_base_value::print const-ness and method overload
Date: Sat, 25 Jan 2014 17:00:59 -0500

Hi John,

Would you mind having a quick look at the patch attached? This implements disp/display overload in classdef, by using the following mapping:
- print -> disp
- print_with_name -> display

There's a ugly hack in octave_classdef::print due to the const-ness of the method. Not really proud of it, but it was more a proof of concept. The question is whether it would be better to remove the const-ness of the method (as for print_with_name) instead?

Michael.

Attachment: classdef-display
Description: Binary data


reply via email to

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