[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has argn gone in Octave 6.1.0?

From: Etienne Grossmann
Subject: Re: Has argn gone in Octave 6.1.0?
Date: Thu, 31 Dec 2020 13:48:09 -0800
User-agent: Internet Messaging Program (IMP) H3 (4.3.10)

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

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

On Thu, Dec 31, 2020 at 12:28 Etienne Grossmann via Help-octave <> wrote:


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.


--- 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);


This message was sent using IMP, the Internet Messaging Program.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]