# HG changeset patch # User John W. Eaton # Date 1234898642 18000 # Node ID 45524925bed9054531132c2ef45ff620435674ba # Parent f57c9fdb68365d0bb9a065238cf003acbdec234b ov-class.cc (octave_class::subsref): return class object, not struct when indexing directly diff -r f57c9fdb6836 -r 45524925bed9 src/ChangeLog --- a/src/ChangeLog Tue Feb 17 12:39:30 2009 -0500 +++ b/src/ChangeLog Tue Feb 17 14:24:02 2009 -0500 @@ -1,5 +1,8 @@ 2009-02-17 John W. Eaton + * ov-class.cc (octave_class::subsref): If indexing directly and + result is map, return class object, not simple struct. + * symtab.cc (symbol_table::fcn_info::fcn_info_rep::load_private_function): Pass dir_name to load_fcn_from_file. diff -r f57c9fdb6836 -r 45524925bed9 src/ov-class.cc --- a/src/ov-class.cc Tue Feb 17 12:39:30 2009 -0500 +++ b/src/ov-class.cc Tue Feb 17 14:24:02 2009 -0500 @@ -235,7 +235,8 @@ } } else - retval(0) = map.index (idx.front ()); + retval(0) = octave_value (map.index (idx.front ()), + class_name ()); } break;