Mercurial > hg > octave-lojdl
changeset 9125:8ab1e6f63cdc
gripe on magic end query for undefined variable
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 16 Apr 2009 09:25:22 +0200 |
parents | 47f19c11b558 |
children | 5780b3b80425 |
files | src/ChangeLog src/pt-idx.cc |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-04-16 Jaroslav Hajek <highegg@gmail.com> + + * pt-idx.cc (make_value_list): Gripe on magic end query for undefined + variables. + 2009-04-16 Jaroslav Hajek <highegg@gmail.com> * xpow.cc (same_sign): New helper function.
--- a/src/pt-idx.cc +++ b/src/pt-idx.cc @@ -173,7 +173,12 @@ octave_value_list retval; if (args) - retval = args->convert_to_const_vector (object); + { + if (object && args->has_magic_end () && object->is_undefined ()) + gripe_invalid_inquiry_subscript (); + else + retval = args->convert_to_const_vector (object); + } if (! error_state) {