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

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

[Octave-bug-tracker] [bug #58830] imprecise error message for "size(foo,


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #58830] imprecise error message for "size(foo, end)"
Date: Thu, 13 Aug 2020 17:00:22 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #9, bug #58830 (project octave):

Rik: yeah, I don't see how to do what Mike showed in the other bug report.  If
evaluation of the argument list fails, then we can't really proceed to look up
the function because we don't really know what the arguments are for
dispatching.  The simplest solution seems to be to just throw an "invalid use
of 'end' in index expression".  If it occurs within a function, you should get
a stack trace to tell you the line where the error happened.  Yes, it makes
the error for undefined X different for X(1:end) vs X(1:10), but that seems
reasonable to me.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58830>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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