[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44582] Syntax error on class enumeration
From: |
Randall Bass |
Subject: |
[Octave-bug-tracker] [bug #44582] Syntax error on class enumeration |
Date: |
Fri, 20 Mar 2015 00:00:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?44582>
Summary: Syntax error on class enumeration
Project: GNU Octave
Submitted by: randyman99
Submitted on: Fri 20 Mar 2015 12:00:50 AM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: randyman99
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.1
Operating System: GNU/Linux
_______________________________________________________
Details:
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.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 20 Mar 2015 12:00:50 AM GMT Name: temp3.m Size: 361B By:
randyman99
<http://savannah.gnu.org/bugs/download.php?file_id=33405>
-------------------------------------------------------
Date: Fri 20 Mar 2015 12:00:50 AM GMT Name: test_class_camera.m Size: 470B
By: randyman99
<http://savannah.gnu.org/bugs/download.php?file_id=33406>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44582>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44582] Syntax error on class enumeration,
Randall Bass <=