[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' shoul
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error |
Date: |
Tue, 23 Apr 2019 11:32:31 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #56167 (project octave):
Status: Ready For Test => Fixed
_______________________________________________________
Follow-up Comment #17:
@jwe: I tested this and it works fine
octave:1> x = {1, 2; 3, 4}
x =
{
[1,1] = 1
[2,1] = 3
[1,2] = 2
[2,2] = 4
}
octave:2> x()
ans =
{
[1,1] = 1
[2,1] = 3
[1,2] = 2
[2,2] = 4
}
octave:3> x{}
error: invalid empty index expression
One final idea. Since empty indexing '()' of regular objects is likely to
indicate a coding problem, could we emit a warning when that is used? It
could be a warning_with_id() so that the whole mechanism could be switched off
easily if a programmer has used the construct extensively. Otherwise, it
would be a good note to the programmer to change the one or two instances of
their code that use this.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56167>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing within matrix brackets results in concatenation error, (continued)
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing within matrix brackets results in concatenation error, Andrew Janke, 2019/04/18
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing within matrix brackets results in concatenation error, SillyMon, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Andrew Janke, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/19
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, John W. Eaton, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Guillaume, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, John W. Eaton, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, John W. Eaton, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error,
Rik <=
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Andrew Janke, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, John W. Eaton, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/23
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, anonymous, 2019/04/24
- [Octave-bug-tracker] [bug #56167] non-existent cell indexing 'C{}' should produce an error, Rik, 2019/04/24