# HG changeset patch # User Jaroslav Hajek # Date 1264856294 -3600 # Node ID fa0c28aff4390aa197d1124e89a0465a98e7b998 # Parent d3fc22c3071cb0cd7a94a2a585c45a671772c48f update documentation diff -r d3fc22c3071c -r fa0c28aff439 doc/ChangeLog --- a/doc/ChangeLog Sat Jan 30 06:03:19 2010 +0100 +++ b/doc/ChangeLog Sat Jan 30 13:58:14 2010 +0100 @@ -1,3 +1,8 @@ +2010-01-30 Jaroslav Hajek + + * interpreter/expr.txi (Assignment): Document return value of + multi-assignment with skipped values. + 2010-01-29 John W. Eaton * interpreter/poly.txi (Derivatives and Integrals): diff -r d3fc22c3071c -r fa0c28aff439 doc/interpreter/expr.txi --- 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