bugGNU Octave - Bugs: bug #44582, classdef: missing support for...

 
 

bug #44582: classdef: missing support for enumeration

Submitted by:  Randall Bass <randyman99>
Submitted on:  Fri 20 Mar 2015 12:00:50 AM UTC  
 
Category:  Interpreter Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  randyman99 Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Thu 11 Aug 2016 02:25:03 PM UTC, comment #3:

> I don't think it's particularly helpful to have scattered bug reports about which parts of classdef are not implemented yet. I find them distracting. It would be more useful to have a canonical wiki page that outlines what is and what hasn't been implemented.


Octave 4.0 has been released and we now support classdef. Individual bug reports about the missing features are useful again. Reopening this bug with a link to it on the classdef wiki page.

Carnë Draug <carandraug>
Project Member
Fri 20 Mar 2015 02:29:00 PM UTC, comment #2:

There is no classdef support in 3.8.1 and incomplete classdef support on the upcoming 4.0 release.

I don't think it's particularly helpful to have scattered bug reports about which parts of classdef are not implemented yet. I find them distracting. It would be more useful to have a canonical wiki page that outlines what is and what hasn't been implemented.

I am closing this bug in favour of bug #44590.

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Fri 20 Mar 2015 01:04:29 PM UTC, comment #1:

What I get is:

>> enumeration
warning: the 'enumeration' function is not yet implemented in Octave

Philip Nienhuis <philipnienhuis>
Project Member
Fri 20 Mar 2015 12:00:50 AM UTC, original submission:

In a classdef file, I created an enumeration as such:

   enumeration
        fun (1,  2,  3)
        bun (4,  5,  6)
        sun (7,  8,  9)
    end

This was taken out of the Matlab documentation, with some name and value changes, and does run in Matlab (from a calling test script). When I run it in Octave, I get the following error:

parse error near line 19 of file /home/randy/Matlab/Projects/test-scripts/temp3.m

  syntax error

>>>         fun (1,  2,  3)
                  ^

error: called from:
error:   /home/randy/Matlab/Projects/testscripts/test_class_camera.m at line 14, column 6

For some reason it chokes on the comma following the first parameter in the enumeration. I am attaching the classdef file as well as the test script.

Randall Bass <randyman99>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #33405:  temp3.m added by randyman99 (361B - text/x-objcsrc)
file #33406:  test_class_camera.m added by randyman99 (470B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by randyman99 (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 14 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-11 carandraug DependenciesRemoved dependency to bugs #44590 => -
    2016-08-11 carandraug Severity3 - Normal => 1 - Wish
        Item GroupMatlab Compatibility => Feature Request
        StatusDuplicate => None
        Open/ClosedClosed => Open
        Release3.8.1 => dev
        Operating SystemGNU/Linux => Any
        SummarySyntax error on class enumeration => classdef: missing support for enumeration
    2016-08-11 carandraug DependenciesRemoved dependency to bugs #44590 => -
    2015-03-20 jordigh StatusNone => Duplicate
        Open/ClosedOpen => Closed
        Dependencies- => Depends on bugs #44590
    2015-03-20 randyman99 Attached File- => Added temp3.m, #33405
        Attached File- => Added test_class_camera.m, #33406

    Back to the top


    Powered by Savane 3.4