help-octave
[Top][All Lists]
Advanced

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

Re: global variable question


From: John W. Eaton
Subject: Re: global variable question
Date: Mon, 8 Dec 2003 09:31:25 -0600

On  8-Dec-2003, Geraint Paul Bevan <address@hidden> wrote:

| Upgrading to 2.1.50 doesn't fix the problem with subsequent global
| declarations
| 
| GNU Octave, version 2.1.50 (i386-pc-linux-gnu).
| 
| octave:1> global n = 10
| octave:2> n
| n = 10
| octave:3> global n = 100
| octave:4> n
| n = 10

There is nothing to fix.  As I said before, this behavior is
intentional, though perhaps Octave should print a warning for
subsequent initializations in global statements.

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]