[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expr
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression |
Date: |
Sun, 12 Aug 2018 07:27:05 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48 |
Update of bug #54490 (project octave):
Operating System: GNU/Linux => Any
_______________________________________________________
Follow-up Comment #5:
1. Please beware,you make basic syntax errors in your code, Octave wouldn't
accept it either
2. Do not use "test" as function name, call it "bug54490<some letter>", makes
it easier for us to copy/paste
Example 1 :
>> global k;
>> k = 2;
>> a = cell(1, 2);
>> [a{1:k}] = bug54490b()
a =
1×2 cell array
{[0.6324]} {[0.0975]}
Example 2;
>> edit bug54490c.m
>> clear all
>> global k;
k = 2;
>> a = cell(1, 2);
>> [a{1:k}] = bug54490c()
2
a =
1×2 cell array
{[0.2785]} {[0.5469]}
>>
As to the nargout command, the functions bug54490a ...-c can be run in the
debugger and then you'll see the same.
OS->Any as I tested in Window 7
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54490>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, anonymous, 2018/08/11
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, Philip Nienhuis, 2018/08/11
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, anonymous, 2018/08/11
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, Philip Nienhuis, 2018/08/11
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, Philip Nienhuis, 2018/08/11
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, anonymous, 2018/08/11
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression,
Philip Nienhuis <=
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, Guillaume, 2018/08/13
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, John W. Eaton, 2018/08/13
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, John W. Eaton, 2018/08/13
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, John W. Eaton, 2018/08/14
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, Philip Nienhuis, 2018/08/17
- [Octave-bug-tracker] [bug #54490] Order of evaluation in assignment expression, Rik, 2018/08/27