|
| 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 18:48:26 -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 |
Follow-up Comment #1, bug #52075 (project octave):
I wrote a patch for this problem. It is basically one if statement that
prepend the base_lexer::fcn_file_name to the local function name to make it
different from the method name when calling parent_scope_info::name_ok(). As
the comments to name_ok() state the names just have to be unique.
I also added a test for this bug.
(file #41852)
_______________________________________________________
Additional Item Attachment:
File name: local_method_dup_patch.diff Size:3 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52075>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |