[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange parse error
From: |
David Bateman |
Subject: |
Re: Strange parse error |
Date: |
Mon, 9 Aug 2004 22:59:17 +0200 |
User-agent: |
Mutt/1.4.1i |
Sorry to say it but, here I get
octave:1> foo
parse error near line 3 of file /home/dbateman/foo.m
syntax error
>>> x = sin(arg);
but hey its a pretty stupid thing to do in any case. Wrapping the "x =
sin(arg)" in an eval as well and the problem goes away..
D.
According to John W. Eaton <address@hidden> (on 08/09/04):
> 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
> -------------------------------------------------------------
--
David Bateman address@hidden
Motorola CRM +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax)
91193 Gif-Sur-Yvette FRANCE
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
-------------------------------------------------------------
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
-------------------------------------------------------------