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

 
 

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

Submitter:  Felipe G. Nievinski <fgnievinski>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/f59459404f55

It seems to work for me.


John W. Eaton <jwe>
Group 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>
Group 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>
Group Member
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")
display hello

Felipe G. Nievinski <fgnievinski>

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group 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.13-758e.
    Corresponding source code