tir, 13 01 2009 kl. 12:36 -0600, skrev Jonathan Kotta: > Doesn't that always set the value to the default, unless you give it a > new value? Then you can't read the current value without making it > global.
No, but I the syntax regarding persistent variables can be somewhat confusing. The line persistent ml_reffreq = 440; will be interpreted as: the first time the function is called the variable will be assigned the value 440. In all subsequent calls to the function the variable will have whatever value it was given in previous calls. If that explanation is confusing, I recommend playing around with persistent variables to see what happens. Søren ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
