Re: Has argn gone in Octave 6.1.0?

Etienne Grossmann via Help-octave <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <[email protected]>

+Olaf Till, maintainer of the struct octave-forge package.

Nicholas Jankowski <[email protected]> (Thu, 31 Dec 2020 12:48:22 -0600) wrote: 

> On Thu, Dec 31, 2020 at 12:28 Etienne Grossmann via Help-octave <[email protected]> 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  
> https://savannah.gnu.org/bugs/?59401

  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[1]/", 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

Links:
------
[1] https://savannah.gnu.org/bugs/?59342


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.