[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51038] function associated with short circuit
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #51038] function associated with short circuit operation |
Date: |
Tue, 16 May 2017 11:49:00 -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/?51038>
Summary: function associated with short circuit operation
Project: GNU Octave
Submitted by: ernstreissner
Submitted on: Tue 16 May 2017 03:48:58 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Feature Request
Status: None
Assigned to: None
Originator Name: ernstreissner
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
As can be read in the docs,
the operator & is defined by the function 'and'
and likewise the operator | by the function 'or'.
The short circuit operators && and || are not tied to a function.
This is not a bug because it is the same in matlab.
Nevertheless, it makes it impossible to overwrite the operators && and ||.
This is exactly what I want to do
because I define a polyvalued logic with object oriented means.
I suggest to define a function andSeq and orSeq
for sequential evaluation tied to && and ||, respectively.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51038>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51038] function associated with short circuit operation,
Ernst Reissner <=