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

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

[Octave-bug-tracker] [bug #33605] concatenation of struct with empty str


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #33605] concatenation of struct with empty string fails
Date: Mon, 20 Jun 2011 17:04:20 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110430 Iceweasel/3.5.19 (like Firefox/3.5.19)

URL:
  <http://savannah.gnu.org/bugs/?33605>

                 Summary: concatenation of struct with empty string fails
                 Project: GNU Octave
            Submitted by: jwe
            Submitted on: Mon 20 Jun 2011 05:04:19 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The following should all work


s.a = 1; s.b = 2;
[[], s]
['', s]
["", s]
[s, []]
[s, '']
[s, ""]


but the character string versions fail on invalid conversions.

Should we be treating literal null matrices specially in tree_matrix::rvalue1
in pt-mat.cc?  Because of the way that function handles initial empty values,
it seems that functions like
oct_catop_matrix_struct in op-struct.cc are not called in all cases.  Or maybe
they are never called?  In what cases are they be called?  Should they be
called for all empty value cases?  Just for non-literal empty matrices?  At
this point, I'm obviously not sure what the right fix is...




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33605>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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