[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58751] Calling an undefined function ignoring
From: |
Fernando |
Subject: |
[Octave-bug-tracker] [bug #58751] Calling an undefined function ignoring first output value throws strange error message |
Date: |
Sat, 11 Jul 2020 14:42:32 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
URL:
<https://savannah.gnu.org/bugs/?58751>
Summary: Calling an undefined function ignoring first output
value throws strange error message
Project: GNU Octave
Submitted by: tutissanalio
Submitted on: sáb 11 jul 2020 18:42:30 UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 6.0.90
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
The following happens in Octave 6.0.1 (hg id: 7a17dfa7716d)
>> [~,b]=non_existing % non_existing does not exist
error: if: undefined value used in conditional expression
error: called from
__unimplemented__ at line 520 column 9
Of course, an error should be thrown, but the error error message is very
strange. If the first output is not ignored, the error message is correct:
>> non_existing
error: 'non_existing' undefined near line 1, column 1
>> [a,b]=non_existing
error: 'non_existing' undefined near line 1, column 1
>> [a,~]=non_existing
error: 'non_existing' undefined near line 1, column 1
The problem also happens if the function is defined but does not give a value
for its second output argument. For example:
>> function [a,b]=f(msg), a=msg; end
>> [~,b]=f('something')
error: if: undefined value used in conditional expression
error: called from
__unimplemented__ at line 520 column 9
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58751>
_______________________________________________
Mensaje enviado vía Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58751] Calling an undefined function ignoring first output value throws strange error message,
Fernando <=