[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 14:22:07 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #19, bug #56167 (project octave):
Warnings can be disabled in smaller regions of code by using the "local"
argument to warning() as in:
warning ("off", "WARNING_ID", "local")
>From the help text,
If a final argument "local" is provided then the warning state will
be set temporarily until the end of the current function. Changes
to warning states that are set locally affect the current function
and all functions called from the current scope. The previous
warning state is restored on return from the current function. The
"local" option is ignored if used in the top-level workspace.
I think it is an advantage to warn the programmer about potentially confusing
accessing a variable versus calling a function, so I would vote against
supporting uniform access.
In any case, Matlab has already chosen a direction. They emit a warning
today, and will make it an error to use this syntax in the future, so it
wouldn't be bad to be moving in the same direction.
_______________________________________________________
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 'C{}' should produce an error, (continued)
- [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, 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, Andrew Janke, 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, 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