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

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

[Octave-bug-tracker] [bug #55767] classdef property should not be the sa


From: Rik
Subject: [Octave-bug-tracker] [bug #55767] classdef property should not be the same as classdef name (at least for Matlab compatibility)
Date: Fri, 22 Feb 2019 16:59:03 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

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

                 Summary: classdef property should not be the same as classdef
name (at least for Matlab compatibility)
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Fri 22 Feb 2019 01:59:01 PM PST
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Matlab does not allow a property inside a class to have the same name as the
class.  Octave does allow this.  Is there any significant architecture issue
to allowing / disallowing this behavior?  In any case, I am just pointing it
out.

Sample code in file testprop.m


classdef testprop

        properties
                testprop = 0;
        end

end


Then execute


x = testprop
x.testprop







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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