comparison src/ov.h @ 4452:f3c21a1d1c62

[project @ 2003-07-09 23:20:18 by jwe]
author jwe
date Wed, 09 Jul 2003 23:20:19 +0000
parents ea1d3e1a4b1b
children abbf63293766
comparison
equal deleted inserted replaced
4451:ea1d3e1a4b1b 4452:f3c21a1d1c62
534 534
535 // Conversions. These should probably be private. If a user of this 535 // Conversions. These should probably be private. If a user of this
536 // class wants a certain kind of constant, he should simply ask for 536 // class wants a certain kind of constant, he should simply ask for
537 // it, and we should convert it if possible. 537 // it, and we should convert it if possible.
538 538
539 virtual octave_value convert_to_str (bool pad = false) const 539 octave_value convert_to_str (bool pad = false) const;
540 { return rep->convert_to_str (pad); } 540
541 virtual octave_value convert_to_str_internal (bool pad = false) const
542 { return rep->convert_to_str_internal (pad); }
541 543
542 virtual void convert_to_row_or_column_vector (void) 544 virtual void convert_to_row_or_column_vector (void)
543 { rep->convert_to_row_or_column_vector (); } 545 { rep->convert_to_row_or_column_vector (); }
544 546
545 virtual void print (std::ostream& os, bool pr_as_read_syntax = false) const 547 virtual void print (std::ostream& os, bool pr_as_read_syntax = false) const
721 // octave> A(1) = 3; A(2) = 5 723 // octave> A(1) = 3; A(2) = 5
722 // 724 //
723 // for A already defined and a matrix type. 725 // for A already defined and a matrix type.
724 extern bool Vdo_fortran_indexing; 726 extern bool Vdo_fortran_indexing;
725 727
726 // Should `[97, 98, 99, "123"]' be a string? 728 // Should we print a warning when converting `[97, 98, 99, "123"]'
727 extern bool Vimplicit_num_to_str_ok; 729 // to a character string?
728 730 extern bool Vwarn_num_to_str;
729 // Should we allow things like: 731
732 // If TRUE, warn for operations like
730 // 733 //
731 // octave> 'abc' + 0 734 // octave> 'abc' + 0
732 // 97 98 99 735 // 97 98 99
733 // 736 //
734 // to happen? A positive value means yes. A negative value means 737 extern int Vwarn_str_to_num;
735 // yes, but print a warning message. Zero means it should be
736 // considered an error.
737 extern int Vimplicit_str_to_num_ok;
738 738
739 // Should we warn about conversions from complex to real? 739 // Should we warn about conversions from complex to real?
740 extern int Vwarn_imag_to_real; 740 extern int Vwarn_imag_to_real;
741 741
742 // If TRUE, print the name along with the value. 742 // If TRUE, print the name along with the value.