+Olaf Till, maintainer of the struct octave-forge package.
Nicholas Jankowski <[hidden email]> (Thu, 31 Dec 2020 12:48:22 -0600) wrote:
On Thu, Dec 31, 2020 at 12:28 Etienne Grossmann via Help-octave <
[hidden email]> wrote:
Hello,
has the "argn" function disappeared from Octave in version 6.1.0? I don't see any mention of this in the NEWS file.
In short yes. A number of internal variables that were not intended to be user visible have been removed. specific to argn blessed see
Hi Nicholas,
thank you for the pointer. I see "The maintainer for the struct package does need to decide on a solution for bug #59342", hence the cc: to Olaf.
On my side, I make things work with this patch.
HTH,
Etienne
--- struct-1.0.16/inst/tars.m 2019-03-12 08:27:04.334828863 -0700
+++ /home/etienne/octave/struct-1.0.16/tars.m 2020-12-30 22:01:07.897330276 -0800
@@ -23,6 +23,12 @@
function s = tars (varargin)
+ if version()(1) >= 6
+ argn = {};
+ for i = 1:nargin
+ argn{i} = inputname(i);
+ end
+ end
s = cell2struct (varargin, deblank (cellstr (argn)), 2);
endfunction
--
http://www.egdn.net/etienne.html
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.