Re: Octave Control package bug ?

Andreas Weber <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <[email protected]>
Am 17.09.20 um 17:29 schrieb Andreas Weber:
> I think this cset triggers this problem:
> changeset:   28562:b0b80efecea1
> user:        John W. Eaton <[email protected]>
> date:        Sat Jul 11 09:34:44 2020 -0400
> summary:     error for functions called with too many inputs or outputs

patch attached
bug_zero_too_many_inputs.patch (text/x-patch, 1.1 KB)
# HG changeset patch
# User Andreas Weber <[email protected]>
# Date 1600357451 -7200
#      Thu Sep 17 17:44:11 2020 +0200
# Node ID 4db6378d49fe39bb9e4d16467d4472de9eea9dea
# Parent  122a5d7b939ff9cbbbd096c8f9034055752887d8
__zero__:m: Add '~' for unused inputs

cset https://hg.octave.org/octave/rev/b0b80efecea1 added checking if user-defined function
are called whith more inputs than it can accept

diff -r 122a5d7b939f -r 4db6378d49fe inst/@frd/__zero__.m
--- a/inst/@frd/__zero__.m	Sat Aug 15 23:03:49 2020 +0200
+++ b/inst/@frd/__zero__.m	Thu Sep 17 17:44:11 2020 +0200
@@ -22,7 +22,7 @@
 ## Created: October 2010
 ## Version: 0.1
 
-function [zer, gain, info] = __zero__ (sys)
+function [zer, gain, info] = __zero__ (sys, ~)
 
   error ("frd: zero: this is not possible");
 
diff -r 122a5d7b939f -r 4db6378d49fe inst/@tf/__zero__.m
--- a/inst/@tf/__zero__.m	Sat Aug 15 23:03:49 2020 +0200
+++ b/inst/@tf/__zero__.m	Thu Sep 17 17:44:11 2020 +0200
@@ -22,7 +22,7 @@
 ## Created: October 2009
 ## Version: 0.3
 
-function [zer, gain, info] = __zero__ (sys)
+function [zer, gain, info] = __zero__ (sys, ~)
 
   if (issiso (sys))
     num = get (sys.num{1});
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.