[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51605] operands ++ and -- via function
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #51605] operands ++ and -- via function |
Date: |
Fri, 4 Aug 2017 19:00:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #5, bug #51605 (project octave):
Since function arguments are passed as if by value, how would overloading ++
and -- work? Are you proposing that you could only overload them for handle
classes?
It seems to me that it would be far simpler to just say that ++ and -- are
special syntax that only applies to built-in numeric types and that they can't
be overloaded.
Similarly, I think the OP= operators should just be syntactic sugar for RHS =
RHS OP LHS.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51605>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/