Mercurial > octave-nkf
comparison libinterp/octave-value/ov.h @ 19783:c913247c85a8
make colon function work (bug #44290)
* colon.m: Delete.
* scripts/miscellaneous/module.mk: Update.
* data.cc (Fcolon): New function.
* ov.h, ov.cc (do_colon_op): New functions.
* pt-colon.h, pt-colon.cc (tree_colon_expression::make_range): Delete.
(tree_colon_expression::rvalue1): Use do_colon_op instead of make_range.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 18 Feb 2015 17:02:13 -0500 |
parents | 4197fc428c7d |
children | 09ed6f7538dd |
comparison
equal
deleted
inserted
replaced
19782:3fc946d5e91f | 19783:c913247c85a8 |
---|---|
1062 | 1062 |
1063 friend OCTINTERP_API octave_value do_cat_op (const octave_value& a, | 1063 friend OCTINTERP_API octave_value do_cat_op (const octave_value& a, |
1064 const octave_value& b, | 1064 const octave_value& b, |
1065 const Array<octave_idx_type>& ra_idx); | 1065 const Array<octave_idx_type>& ra_idx); |
1066 | 1066 |
1067 friend OCTINTERP_API octave_value do_colon_op (const octave_value& base, | |
1068 const octave_value& limit, | |
1069 bool is_for_cmd_expr = false) | |
1070 { | |
1071 return do_colon_op (base, octave_value (), limit, is_for_cmd_expr); | |
1072 } | |
1073 | |
1074 friend OCTINTERP_API octave_value do_colon_op (const octave_value& base, | |
1075 const octave_value& increment, | |
1076 const octave_value& limit, | |
1077 bool is_for_cmd_expr = false); | |
1078 | |
1067 const octave_base_value& get_rep (void) const { return *rep; } | 1079 const octave_base_value& get_rep (void) const { return *rep; } |
1068 | 1080 |
1069 bool is_copy_of (const octave_value &val) const { return rep == val.rep; } | 1081 bool is_copy_of (const octave_value &val) const { return rep == val.rep; } |
1070 | 1082 |
1071 void print_info (std::ostream& os, | 1083 void print_info (std::ostream& os, |