From: <gof...@us...> - 2009-06-20 16:35:28
|
Revision: 5968 http://octave.svn.sourceforge.net/octave/?rev=5968&view=rev Author: goffioul Date: 2009-06-20 16:35:26 +0000 (Sat, 20 Jun 2009) Log Message: ----------- Add required indexing method for octave 3.2.0 Modified Paths: -------------- trunk/octave-forge/extra/Windows/src/__COM__.cc Modified: trunk/octave-forge/extra/Windows/src/__COM__.cc =================================================================== --- trunk/octave-forge/extra/Windows/src/__COM__.cc 2009-06-18 18:17:20 UTC (rev 5967) +++ trunk/octave-forge/extra/Windows/src/__COM__.cc 2009-06-20 16:35:26 UTC (rev 5968) @@ -170,6 +170,12 @@ octave_value_list subsref (const std::string& type, const std::list<octave_value_list>& idx, int nargout); + octave_value subsref (const std::string& type, const std::list<octave_value_list>& idx) + { + octave_value_list retval = subsref (type, idx, 1); + return (retval.length () > 0 ? retval(0) : octave_value ()); + } + octave_value subsasgn (const std::string& type, const std::list<octave_value_list>& idx, const octave_value& rhs); private: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |