[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61784] builtins deprecated warning problem
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #61784] builtins deprecated warning problem |
Date: |
Thu, 13 Jan 2022 01:02:58 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 |
Follow-up Comment #4, bug #61784 (project octave):
The intent was to move all of these built-in functions inside the octave
namespace while also providing inline functions that would also make them
visible in the global namespace.
We want to provide the old names to allow for a transition period of at least
two major releases so removing the old names in version 7 is not really an
option.
Using a template (or some other method that works to avoid the ambiguity)
could be OK. However, when I changed the inline function in
builtin-defun-decls.h to be
template <typename T>
OCTAVE_DEPRECATED (7, "use 'octave::F__dump_load_path__' instead")
octave_value_list
F__dump_load_path__ (T& interp, const octave_value_list& args =
octave_value_list (), int nargout = 0)
{
return octave::F__dump_load_path__ (interp, args, nargout);
}
the warning about the deprecated function name also disappeared. Am I doing
something wrong? It's not particularly useful to lose the warning since we
would like users to be alerted to this namespace change.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61784>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, anonymous, 2022/01/10
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, Markus Mützel, 2022/01/12
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, anonymous, 2022/01/12
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, Markus Mützel, 2022/01/12
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem,
John W. Eaton <=
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, Markus Mützel, 2022/01/13
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, Markus Mützel, 2022/01/13
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, Markus Mützel, 2022/01/18
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, John W. Eaton, 2022/01/18
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, Markus Mützel, 2022/01/18
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, John W. Eaton, 2022/01/18
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, John W. Eaton, 2022/01/18
- [Octave-bug-tracker] [bug #61784] builtins deprecated warning problem, Markus Mützel, 2022/01/21