octave-maintainers
[Top][All Lists]
Advanced

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

src/ov-base.h, class octave_base_value


From: CdeMills
Subject: src/ov-base.h, class octave_base_value
Date: Mon, 31 Jan 2011 06:04:27 -0800 (PST)

Hello,

I was trying to understand the purpose of the static data at the end of the
class definition:
 static int curr_print_indent_level;
  static bool beginning_of_line;

The last value is mainly used inside functions
octave_base_value::indent (std::ostream& os) 
octave_base_value::newline (std::ostream& os) 
As those functions are always used in the context of a std::ostream,
shouldn't we derive one class of std::ostream and move the value
beginning_of_line, and functions indent and newline, there ?

Regards

Pascal 

-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/src-ov-base-h-class-octave-base-value-tp3248783p3248783.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

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