help-octave
[Top][All Lists]
Advanced

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

Re: static variables


From: Stefan van der Walt
Subject: Re: static variables
Date: Wed, 22 Sep 2004 10:39:17 +0200
User-agent: Mutt/1.5.6+20040722i

Is it possible to use persistent variables in an oct file?

Regards
Stefan

On Mon, Sep 20, 2004 at 11:28:25AM -0400, John W. Eaton wrote:
> On 20-Sep-2004, David Bateman <address@hidden> wrote:
> 
> | Looking in octave.gperf, you'll see
> | 
> | persistent, STATIC, static_kw
> | static, STATIC, static_kw
> | 
> | so the parser treats them as identical. The fact that it isn't a keyword
> | means that you can create a variable "static" 
> 
> I think you mean "static" is a keyword, so you can't create a variable
> or function called "static".
> 
> | > Do I have to update those scripts, because 'static'
> | > may not be supported anymore in upcoming versions ?
> | 
> | This depends on the wishes of John...
> 
> I don't have any plans to remove the "static" keyword as another way
> of saying "persistent".  OTOH, I'm not sure that we need both names.
> I believe that we have "static" only because it was implemented before
> any released version of Matlab had "persistent".
> 
> 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]