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

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

[Octave-bug-tracker] [bug #50395] subclassing a class that is also defin


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #50395] subclassing a class that is also defined as a variable fails
Date: Fri, 24 Feb 2017 17:29:37 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0

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

                 Summary: subclassing a class that is also defined as a
variable fails
                 Project: GNU Octave
            Submitted by: arb
            Submitted on: Fri 24 Feb 2017 10:29:35 PM UTC
                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: Any

    _______________________________________________________

Details:

consider class c


classdef c
end


and class a, subclassing c:


classdef a < c
    methods
        function obj = a()
            disp('a instance created');
        end
    end
end


Then the following script:


a_i = a();

clear all
c = 3;
a_i = a();


produces this:


a instance created
error: class not found: c


on the second instantiation it reports the "class not found" error




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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