[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33637] Misleading "Incorrect use of end" mess
From: |
Pascal Dupuis |
Subject: |
[Octave-bug-tracker] [bug #33637] Misleading "Incorrect use of end" message |
Date: |
Fri, 24 Jun 2011 14:24:17 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110615 Ubuntu/10.04 (lucid) Firefox/3.6.18 |
URL:
<http://savannah.gnu.org/bugs/?33637>
Summary: Misleading "Incorrect use of end" message
Project: GNU Octave
Submitted by: cdemills
Submitted on: ven. 24 juin 2011 14:24:17 GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name: Pascal Dupuis
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.1
Operating System: GNU/Linux
_______________________________________________________
Details:
Hello,
I introduced the following typo in a function code:
if (length(varargin) > 1)
some_par = varargin(1);
varargin = varagin(2:end) % <= notice the typo
else
some_par = ones(size(x));
endif
This generate the following error message:
"invalid use of end"
The problem is that there is obviously no varagin variable. Could the error
clearly point to the fact that the variable associated with the 'end' keyword
does not exist, and not about the use of end itself?
Regards
Pascal
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33637>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #33637] Misleading "Incorrect use of end" message,
Pascal Dupuis <=