[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58695] Array is left empty if an element is a
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing |
Date: |
Wed, 8 Jul 2020 10:17:08 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #11, bug #58695 (project octave):
Oh, I see.
I think your change is the right thing to do, but we were already returning an
empty octave_value_list in this case. Your change makes the dot indexing
operation return an empty comma-separated list instead.
We still have the issue of what functions without return lists should be
creating. Currently, they also create empty octave_value_list objects.
What does Matlab do for things like the following?
function f1 (), end
function f2 (), 1; end
f1
f2
x = f1
x = f2
[1, f1, 2]
[1, f2, 2]
With this info I think I can also make Octave's behavior consistent in these
cases.
I'd also like to credit you for this change. Can I use your full name for
that?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58695>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58695] List is left empty if an item is a function call returning nothing, (continued)
- [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
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing,
John W. Eaton <=
- [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, 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
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing, Kai Torben Ohlhus, 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/09
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing, Fernando, 2020/07/09
- [Octave-bug-tracker] [bug #58695] Array is left empty if an element is a function call returning nothing, Rik, 2020/07/10