Mercurial > hg > octave-terminal
changeset 10228:fa0c28aff439
update documentation
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sat, 30 Jan 2010 13:58:14 +0100 |
parents | d3fc22c3071c |
children | 02ae72071221 |
files | doc/ChangeLog doc/interpreter/expr.txi |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-01-30 Jaroslav Hajek <highegg@gmail.com> + + * interpreter/expr.txi (Assignment): Document return value of + multi-assignment with skipped values. + 2010-01-29 John W. Eaton <jwe@octave.org> * interpreter/poly.txi (Derivatives and Integrals):
--- a/doc/interpreter/expr.txi +++ b/doc/interpreter/expr.txi @@ -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