[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords ag
From: |
Paul Ortyl |
Subject: |
[Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop |
Date: |
Thu, 08 Apr 2010 16:48:39 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100404 Ubuntu/10.04 (lucid) Firefox/3.6.3 |
URL:
<http://savannah.gnu.org/bugs/?29476>
Summary: Parser incompatibility for keywords against Matlab
implementation, infinite loop
Project: GNU Octave
Submitted by: ortylp
Submitted on: Thu 08 Apr 2010 04:48:38 PM GMT
Category: Interpreter
Severity: 3 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.3.51
Operating System: GNU/Linux
_______________________________________________________
Details:
Here below is a stripped down piece of code, which parses and works in Matlab
(R2008a), fails in Octave 3.2.4, fails and hangs Octave 3.3.51.
------------------------------
function this = a()
this.do = @do;
function this = do(this, in)
this = this+in;
end
end
-----------------------------
=============================
error: function handles may not refer to keywords
parse error near line 3 of file a.m
syntax error
>>> this.do = @do;
^
error: function handles may not refer to keywords
parse error near line 3 of file a.m
syntax error
>>> this.do = @do;
^
================================
The problem is usage of keyword 'do' as function name. As long as it is
unambiguous, and in the example above IT IS, the keyword was accepted as
function name and allowed in the reference to be assigned.
Octave 3.2.4 reports the error and returns to prompt, version 3.3.51 does not
return but hangs taking 100% of CPU time.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29476>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop,
Paul Ortyl <=
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, John W. Eaton, 2010/04/08
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, Paul Ortyl, 2010/04/08
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, John W. Eaton, 2010/04/08
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, Paul Ortyl, 2010/04/08
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, John W. Eaton, 2010/04/08
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, Paul Ortyl, 2010/04/08
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, Jaroslav Hajek, 2010/04/09
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, John W. Eaton, 2010/04/09
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, Judd Storrs, 2010/04/09
- [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop, Judd Storrs, 2010/04/09