[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33982] Use of tilde (~) operator to ignore ou
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #33982] Use of tilde (~) operator to ignore outputs is not supported |
Date: |
Thu, 11 Aug 2011 12:37:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110430 Iceweasel/3.5.19 (like Firefox/3.5.19) |
Update of bug #33982 (project octave):
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
This feature was added in Octave 3.4.x. You marked that as the version in the
bug report form, but your example shows that you are using Octave 3.2.4. I'm
closing this report since the feature is already implemented in the current
Octave release.
Also, there is rarely a need to ignore trailing output arguments unless your
function does something different based on nargout. In the specific case you
show, you might as well simply write
a = example (1, 2);
since the effect is the same.
OTOH, it is often more useful to write things like
[~, b] = example (1, 2);
since then the unneeded output is not stored in the scope of the function call
even if it is computed by the function.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33982>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/