octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #50716] Undefined input to a classdef method


From: Guillaume
Subject: [Octave-bug-tracker] [bug #50716] Undefined input to a classdef method
Date: Wed, 5 Apr 2017 06:58:09 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #2, bug #50716 (project octave):

Yes, as soon as the expression contains "end" somewhere, it is understood as
calling the method without input arguments and calling subsref on the output
with the rest of the expression.

You can reproduce it with inputParser:


p = inputParser ();
p.addOptional ("ver", version()(1:end));
p.addOptional ("ver", struct('a',version()(1:end-2),'b',''));


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50716>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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