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

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

[Octave-bug-tracker] [bug #32242] incomplete initialisation of object ar


From: Volkmar Glauche
Subject: [Octave-bug-tracker] [bug #32242] incomplete initialisation of object arrays - follow up to bug #32222
Date: Tue, 25 Jan 2011 11:41:32 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

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

                 Summary: incomplete initialisation of object arrays - follow
up to bug #32222
                 Project: GNU Octave
            Submitted by: glauche
            Submitted on: Di 25 Jan 2011 11:41:32 GMT
                Category: None
                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:

Using the same code as in bug #32222, the following produces incorrect
results:


octave:2> d(2)=cfg_dep
 
d = 
 
cfg_dep object: 1-by-2
 
octave:3> d(1)
 
ans = 
 
cfg_dep object: 1-by-1

  scalar structure containing the fields:

    tname = [](0x0)
    tgt_exbranch = [](0x0)
    tgt_input = [](0x0)
    tgt_spec = [](0x0)
    jtsubs = [](0x0)
    sname = [](0x0)
    src_exbranch = [](0x0)
    src_output = [](0x0)
 
octave:4> d(2)
 
ans = 
 
cfg_dep object: 1-by-1

  scalar structure containing the fields:

    tname = Target
    tgt_exbranch =

      0x0 struct array containing the fields:

        type
        subs

    tgt_input =

      0x0 struct array containing the fields:

        type
        subs

    tgt_spec = {}(0x0)
    jtsubs =

      0x0 struct array containing the fields:

        type
        subs

    sname = Source
    src_exbranch =

      0x0 struct array containing the fields:

        type
        subs

    src_output =

      0x0 struct array containing the fields:

        type
        subs


d(1) does not get initialised properly, but d(2) does. In MATLAB, both d(1)
and d(2) get initialised.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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