[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49444] tilde output argument requires comma f
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #49444] tilde output argument requires comma for parsing |
Date: |
Sat, 17 Dec 2016 20:33:55 -0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
Follow-up Comment #3, bug #49444 (project octave):
I would lean towards addressing this in documentation. To me it seems natural
that tilde is a prefix operator, and can only be used in this special mode as
an argument placeholder when it's followed by a comma.
What does Matlab do?
This example with sort is a little obtuse because the two output arguments are
the same (both the sorted array and the indices are [1 2]). Something like
this demonstrates a little more clearly
>> [~, ~, x] = deal (1, 2, 3)
x = 3
>> [~ ~ x] = deal (1, 2, 3)
parse error:
invalid left hand side of assignment
>>> [~ ~ x] = deal (1, 2, 3)
^
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49444>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #49444] tilde output argument requires comma for parsing,
Mike Miller <=