octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #60850] Using (end+1) on non-existent variable


From: anonymous
Subject: [Octave-bug-tracker] [bug #60850] Using (end+1) on non-existent variable assignment fails in Octave 6.2.0
Date: Mon, 28 Jun 2021 21:09:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?60850>

                 Summary: Using (end+1) on non-existent variable assignment
fails in Octave 6.2.0
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 29 Jun 2021 01:09:32 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: wangshuo@inhand.com.cn
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

In Octave 5.2.0 it works:

octave:1>  clear all
octave:2>  a(end+1) = 3
a =  3
octave:3>  a(end+1) = 5
a =

   3   5

octave:4>  c{end+1} = 'abcd'
c =
{
  [1,1] = abcd
}

octave:5>  c{end+1} = 1:5
c =
{
  [1,1] = abcd
  [1,2] =

     1   2   3   4   5

}



But in Octave 6.2.0 it fails:

octave:1>  clear all
octave:2>  a(end+1) = 3
error: invalid use of 'end': may only be used to index existing value
octave:3>  c{end+1} = 'abcd'
error: invalid use of 'end': may only be used to index existing value



I'm not sure whether this is a "regression bug" or a "new feature" in Octave
6.2 ?





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60850>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]