Mercurial > jwe > octave
diff doc/interpreter/expr.txi @ 10228:fa0c28aff439
update documentation
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sat, 30 Jan 2010 13:58:14 +0100 |
parents | ea0d83b4470b |
children | 0d928dd9eeb8 |
line wrap: on
line diff
--- a/doc/interpreter/expr.txi Sat Jan 30 06:03:19 2010 +0100 +++ b/doc/interpreter/expr.txi Sat Jan 30 13:58:14 2010 +0100 @@ -1002,10 +1002,10 @@ @end group @end example -This is cleaner and more efficient than using a dummy variable. -It is not recommended, however, to reuse such an assignment statement as a right-hand side -in another expression. Currently, this works as expected, but may cease to work in future -releases of Octave. The @code{nargout} value for the right-hand side expression is not affected. +This is cleaner and more memory efficient than using a dummy variable. +The @code{nargout} value for the right-hand side expression is not affected. +If the assignment is used as an expression, the return value is a comma-separated list +with the ignored values dropped. @opindex += A very common programming pattern is to increment an existing variable