|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #34868] subsref crashes octave |
Date: | Tue, 22 Nov 2011 16:50:51 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 |
Follow-up Comment #11, bug #34868 (project octave): Isn't the analogy closer to indexing with an empty matrix than horzcat with empty arguments? It seems like subsref with a null index is conceptually equivalent to x = 1:10; idx = []; x(idx) ans = [](0x0) It appears most reasonable to either flag an error, as Matlab does, or return an empty matrix since that is what the corresponding index code would do. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?34868> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |