Mercurial > hg > octave-nkf
changeset 6896:5c9c49c51302
[project @ 2007-09-13 18:49:15 by jwe]
author | jwe |
---|---|
date | Thu, 13 Sep 2007 18:49:15 +0000 |
parents | 76e3d985ae56 |
children | 935d23e16951 |
files | doc/interpreter/var.txi |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/var.txi +++ b/doc/interpreter/var.txi @@ -186,9 +186,9 @@ The behavior of persistent variables is equivalent to the behavior of static variables in C. The command @code{static} in octave is also -recognized and is equivalent to @code{persistent}. Unlike global -variables, every initialization statement will re-initialize the -variable. For example, after executing the following code +recognized and is equivalent to @code{persistent}. Like global +variables, a persistent variable may only be initialized once. +For example, after executing the following code @example @group @@ -198,7 +198,7 @@ @end example @noindent -the value of the persistent variable @code{pvar} is 2. +the value of the persistent variable @code{pvar} is 1, not 2. @node Status of Variables @section Status of Variables