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

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

[Octave-bug-tracker] [bug #52075] Classdef local functions with same nam


From: Piotr Held
Subject: [Octave-bug-tracker] [bug #52075] Classdef local functions with same name as methods cause parse error
Date: Wed, 20 Sep 2017 13:55:24 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36

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

                 Summary: Classdef local functions with same name as methods
cause parse error
                 Project: GNU Octave
            Submitted by: jsoh425
            Submitted on: Wed 20 Sep 2017 05:55:22 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Piotr Held
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

When creating a class with a local function that has the same name as a
classdef method the parser issues error about duplicate subfunction or nested
function names. An example test class would be:


classdef local_fcn_methods < handle
  methods
    function duplicate
      printf('method\n');
    end
  end
end

function duplicate
  printf('local foo\n');
end


I also attached this class as an mfile to this bug submission.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 20 Sep 2017 05:55:22 PM UTC  Name: local_fcn_methods.m  Size: 162B  
By: jsoh425

<http://savannah.gnu.org/bugs/download.php?file_id=41847>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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