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

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

[Octave-bug-tracker] [bug #55746] interpreter fails to instantiate class


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #55746] interpreter fails to instantiate classdef with classdef properties
Date: Wed, 20 Feb 2019 07:00:48 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

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

                 Summary: interpreter fails to instantiate classdef with
classdef properties
                 Project: GNU Octave
            Submitted by: arb
            Submitted on: Wed 20 Feb 2019 12:00:46 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

dev octave fails to instantiate a classdef, that has a property that is
initialized to another classdef. See below for how to reproduce, and the
octave-5.0.91 and octave-6.0.0 outputs. Apparently the pckg package name in
the pckg.cls2 invocation is not recognized as a package, but interpreted as a
string.

file lay-out


./use_pckg.m
./+pckg/cls1.m
./+pckg/cls2.m



classdef cls1
  properties
    c2 = pckg.cls2;
  end
end



classdef cls2
end



% script use_pckg
ver = version
hg_id = __octave_config_info__.hg_id
addpath(pwd);
cls1_inst = pckg.cls1


octave-5.0.x output:


ver = 5.0.91
hg_id = b812ed975ea8+
cls1_inst =
<object pckg.cls1>


octave 6.0.0 output:


ver = 6.0.0
hg_id = 568565a70b58+
error: sq_string cannot be indexed with .
error: called from
    use_pckg at line 5 column 11





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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