help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange parse error


From: John W. Eaton
Subject: Strange parse error
Date: Mon, 9 Aug 2004 11:12:00 -0400

On  9-Aug-2004, Peter Gawthrop <address@hidden> wrote:

| The following code:
| 
| function x = foo ()
|   eval("arg = 1")
|   x = sin(arg);
| endfunction
| 
| Give a
| parse error near line 3 of file foo.m
|   syntax error
| >>>   x = sin(arg);
| 
| presumably because octave thinks that arg is the built-in of that name
| rather than a variable.
| 
| I am running octave  2.1.57 under debian.
| 
|   Any ideas?

I've not been able to reproduce this problem.  Can you please submit a
complete bug report using the bug_report function from inside Octave?

Thanks,

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]