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

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

[Octave-bug-tracker] [bug #54273] Can't access properties of class in pa


From: anonymous
Subject: [Octave-bug-tracker] [bug #54273] Can't access properties of class in package in function defined in class
Date: Sun, 8 Jul 2018 23:13:04 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36

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

                 Summary: Can't access properties of class in package in
function defined in class
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 09 Jul 2018 03:13:03 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Jim Hokanson
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I am getting an error about a class definition not being found when trying to
access a property of a class object from a function (not method) defined in a
class file in a package.

Something like this:

/+package/@my_class

Below all in one file
-----------------------------
classdef my_class

end

function outside_function(obj)
   %obj is instance of my_class
    %Throws an error,
    %class not found: my_class
    my_prop = obj.my_prop
end




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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