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: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.0Operating 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:

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

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")
display hello

Felipe G. Nievinski <fgnievinski>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 22 Jan 2014 05:18:06 PM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Wed 22 Jan 2014 08:02:27 AM UTCjweStatusPostponed=>Ready For Test
    Wed 22 Jan 2014 03:19:23 AM UTCrik5StatusNeed Info=>Postponed
    Tue 14 Jan 2014 12:33:54 AM UTCmtmillerStatusNone=>Need Info
      Operating SystemMicrosoft Windows=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1