Mercurial > hg > octave-lyh
diff src/ov-struct.cc @ 2948:56be458e237f
[project @ 1997-05-09 13:37:35 by jwe]
author | jwe |
---|---|
date | Fri, 09 May 1997 13:51:06 +0000 |
parents | 4e7bea116f24 |
children | ac3368dba5d3 |
line wrap: on
line diff
--- a/src/ov-struct.cc +++ b/src/ov-struct.cc @@ -33,6 +33,7 @@ #include "error.h" #include "ov-struct.h" #include "unwind-prot.h" +#include "variables.h" octave_allocator octave_struct::allocator (sizeof (octave_struct)); @@ -58,10 +59,10 @@ return retval; } -octave_value& -octave_struct::struct_elt_ref (const string& nm) +octave_variable_reference +octave_struct::struct_elt_ref (octave_value *, const string& nm) { - return map [nm]; + return octave_variable_reference (&map [nm]); } void