Mercurial > hg > octave-nkf
changeset 4981:0e7d04102ccf
[project @ 2004-09-10 04:54:46 by jwe]
author | jwe |
---|---|
date | Fri, 10 Sep 2004 04:54:46 +0000 |
parents | 003bbf6c13d8 |
children | c0866f89c43d |
files | src/ChangeLog src/ov-base-scalar.h |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-09-10 John W. Eaton <jwe@octave.org> + + * ov-base-scalar.h (octave_base_scalar::clone, + octave_base_scalar::empty_clone): New functions. + 2004-09-09 John W. Eaton <jwe@octave.org> * pt-pr-code.h (tree_print_code::newline): New optional arg, alt_nl.
--- a/src/ov-base-scalar.h +++ b/src/ov-base-scalar.h @@ -59,6 +59,9 @@ ~octave_base_scalar (void) { } + octave_value *clone (void) const { return new octave_base_scalar (*this); } + octave_value *empty_clone (void) const { return new octave_base_scalar (); } + octave_value squeeze (void) const { return scalar; } octave_value subsref (const std::string& type,