[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51605] operands ++ and -- via function
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #51605] operands ++ and -- via function |
Date: |
Fri, 28 Jul 2017 09:02:16 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 |
URL:
<http://savannah.gnu.org/bugs/?51605>
Summary: operands ++ and -- via function
Project: GNU Octave
Submitted by: ernstreissner
Submitted on: Fri 28 Jul 2017 01:02:15 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
In contrast to matlab,
octave provides operators += and ++ (the latter prefix and postfix).
Both are based on the operator + which is in turn defined by the function
plus(x,y).
in oo-programming, one can overwrite operators like +
by just overwriting the associated function like plus.
Whereas this automatically overwrites +=, it does not overwrite ++.
I think this is inconsistent.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51605>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51605] operands ++ and -- via function,
Ernst Reissner <=