Mercurial > octave-libgccjit
comparison src/ov-class.cc @ 7960:22a18f206121
octave_class::subsasgn: only do internal magic if RHS is not an octave_class object
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 21 Jul 2008 17:55:29 -0400 |
parents | 1e1e2608da7b |
children | 5bf4e2c13ed8 |
comparison
equal
deleted
inserted
replaced
7959:a73b80cd1f10 | 7960:22a18f206121 |
---|---|
317 const std::list<octave_value_list>& idx, | 317 const std::list<octave_value_list>& idx, |
318 const octave_value& rhs) | 318 const octave_value& rhs) |
319 { | 319 { |
320 octave_value retval; | 320 octave_value retval; |
321 | 321 |
322 if (in_class_method ()) | 322 if (in_class_method () && ! rhs.is_object ()) |
323 { | 323 { |
324 // FIXME -- this block of code is the same as the body of | 324 // FIXME -- this block of code is the same as the body of |
325 // octave_struct::subsasgn. Maybe it could be shared instead of | 325 // octave_struct::subsasgn. Maybe it could be shared instead of |
326 // duplicated. | 326 // duplicated. |
327 | 327 |