bugGNU Octave - Bugs: bug #41227, methods("ftp") works,...


bug #41227: methods("ftp") works, methods ftp yields parser/syntax error

Submitted by:  Felipe G. Nievinski <fgnievinski>
Submitted on:  Tue 14 Jan 2014 12:04:16 AM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  3.8.0 Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 22 Jan 2014 08:02:27 AM UTC, comment #3: 

I checked in the following changeset:


It seems to work for me.

John W. Eaton <jwe>
Project Administrator
Sat 18 Jan 2014 02:26:14 AM UTC, comment #2: 

This is the expected result at the moment.  methods() existed before the classdef methodology and is implemented in an m-file.  When you call methods using the function syntax you get the m-file version.  When methods is used as a keyword the parser recognizes it, but there is no code to back it up yet.  The classdef code on the development branch should supply the actual functionality for "events", "methods", and "properties".

Rik <rik5>
Project Administrator
Tue 14 Jan 2014 12:33:54 AM UTC, comment #1: 

Confirmed, but possibly intentional. Note the same behavior with "events", "methods", and "properties". All three are defined as keywords at the parser level, and so are not subject to the same parsing rules as ordinary functions. I can't comment on whether this should work this way or not.

Mike Miller <mtmiller>
Project Administrator
Tue 14 Jan 2014 12:04:16 AM UTC, original submission:  

the two forms should be equivalent,
as is indeed the case in e.g.:
display hello

Felipe G. Nievinski <fgnievinski>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by fgnievinski (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-22 rik5 StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2014-01-22 jwe StatusPostponed => Ready For Test
    2014-01-22 rik5 StatusNeed Info => Postponed
    2014-01-14 mtmiller StatusNone => Need Info
        Operating SystemMicrosoft Windows => Any

    Back to the top

    Powered by Savane 3.5