[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58695] List is left empty if an item is a fun
From: |
Fernando |
Subject: |
[Octave-bug-tracker] [bug #58695] List is left empty if an item is a function call returning nothing |
Date: |
Fri, 3 Jul 2020 06:41:26 -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/?58695>
Summary: List is left empty if an item is a function call
returning nothing
Project: GNU Octave
Submitted by: tutissanalio
Submitted on: vie 03 jul 2020 10:41:24 UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Missed Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
Checking bug #58686 I found the following incorrect behaviour in Octave 7.0.0
(hg id: d5311ca8f945):
octave:1> [2,do_nothing(3),5,3]
ans = [](0x0)
where do_nothing is a function that.. well, does nothing:
function retval = do_nothing(n)
end
The same in Octave 4.2.2:
octave:1> [2,do_nothing(3),5,3]
warning: do_nothing: some elements in list of return values are undefined
warning: called from
do_nothing at line 2 column 1
ans =
2 5 3
The same in Matlab 2020a:
>> [2,do_nothing(3),5,3]
Output argument "retval" (and maybe others) not assigned during call to
"do_nothing".
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58695>
_______________________________________________
Mensaje enviado vía Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58695] List is left empty if an item is a function call returning nothing,
Fernando <=
- [Octave-bug-tracker] [bug #58695] List is left empty if an item is a function call returning nothing, Kai Torben Ohlhus, 2020/07/03
- [Octave-bug-tracker] [bug #58695] List is left empty if an item is a function call returning nothing, Fernando, 2020/07/03
- [Octave-bug-tracker] [bug #58695] List is left empty if an item is a function call returning nothing, Kai Torben Ohlhus, 2020/07/03
- [Octave-bug-tracker] [bug #58695] List is left empty if an item is a function call returning nothing, Fernando, 2020/07/04
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing, Kai Torben Ohlhus, 2020/07/04
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing, Fernando, 2020/07/04
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing, John W. Eaton, 2020/07/07
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing, Fernando, 2020/07/08
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing, John W. Eaton, 2020/07/08
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing, Fernando, 2020/07/08