Are there any operators in D that are not in C++?
C NOT Logical Operator is used to inverse the result of a boolean value or an expression. ! is the symbol used for NOT Logical Operator in C programming. C NOT Operator takes only one boolean value as operand and returns the result of NOT operation.
In Python, there are seven different types of operators: arithmetic operators, assignment operators, comparison operators, logical operators, identity operators, membership operators, and boolean operators.
Here is a list of some D tokens
/=
.
..
...
&
&=
&&
|
|=
||
-
-=
--
+
+=
++
<
<=
<<
<<=
<>
<>=
>
>=
>>=
>>>=
>>
>>>
!
!=
!<>
!<>=
!<
!<=
!>
!>=
(
)
[
]
{
}
?
,
;
:
$
=
==
*
*=
%
%=
^
^=
~
~=
Those for example:
<>
<>=
!<>
!<>=
!<
!<=
!>
!>=
are special operators to compare floating point variables. You can find the description of them here http://www.digitalmars.com/d/1.0/expression.html
There are also the
is
!is
in
!in
typeof
operators.
^^
and ^^=
for exponentiation~
and ~=
for concatenation>>>
and >>>=
for signed (or is it unsigned) bit shiftIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With