bugGNU Octave - Bugs: bug #41723, Local functions in classdef files


bug #41723: Local functions in classdef files

Submitted by:  Guillaume <gyom>
Submitted on:  Thu 27 Feb 2014 03:52:06 PM UTC  
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: GuillaumeOpen/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Wed 05 Mar 2014 04:00:47 PM UTC, comment #4:

John's right. This construct is not supported yet.

Michael Goffioul <goffioul>
Project Member
Wed 05 Mar 2014 03:56:03 PM UTC, comment #3:

I'm pretty sure the issue is that Octave is not expecting there to be anything but comments and whitespace in the file after the END that matches CLASSDEF.

I didn't know that classdef files could define any functions outside of the classdef block.

Fixing the parsing problem will be fairly simple. Fixing the lookup rules so that these functions behave as private functions that are only visible to other functions defined in the classdef file will probably require more work.

John W. Eaton <jwe>
Project Administrator
Wed 05 Mar 2014 03:46:27 PM UTC, comment #2:

Hi Felipe,
I removed that line from the MathWorks example beforehand so I'm afraid that's not the explanation.

Guillaume <gyom>
Wed 05 Mar 2014 08:10:07 AM UTC, comment #1:

could it be the ellipsis on that line?

Felipe G. Nievinski <fgnievinski>
Thu 27 Feb 2014 03:52:06 PM UTC, original submission:

There is a parse error when using a classdef file that contains local functions, as described here:

Guillaume <gyom>


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

Attach File(s):

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by cbm
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by goffioul (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by gyom
  • -unavailable- added by fgnievinski (Posted a comment)
  • -unavailable- added by gyom (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 Mar 2015 02:36:26 PM UTCjordighDependencies-=>Depends on bugs #44590
    Fri 22 Aug 2014 09:10:57 AM UTCcbmCarbon-Copy-=>Added cbm
    Thu 27 Mar 2014 02:44:33 AM UTCmtmillerCategoryNone=>Interpreter
    Wed 05 Mar 2014 03:46:27 PM UTCgyomCarbon-Copy-=>Added goffioul

    Back to the top

    Powered by Savane 3.1-cleanup