Top "Operators" questions

Java boolean |= operator

Recently I saw a code using this: boolean val = something(); val |= somethingElse(); Interesting part is |= (binary like) operator made on …

java operators specifications boolean-expression compound-assignment
File execution with dot space versus dot slash

I am attempting to work with an existing library of code but have encountered an issue. In short, I execute …

linux bash shell operators ksh
Equality Test for Derived Classes in C++

Possible Duplicate: What’s the right way to overload operator== for a class hierarchy? In C++, how can derived classes …

c++ inheritance operators equality equals-operator
Is there an increment operator ++ for Java enum?

Is it possible to implement the ++ operator for an enum? I handle the current state of a state machine with …

java enums operators increment
What is the difference between operator "=" and "==" in Bash?

It seems that these two operators are pretty much the same - is there a difference? When should I use = …

bash operators
Octave operator -: automatic broadcasting operation applied

In octave 3.6.2, I have a matrix X=[1 2 3; 2 4 5; 2 6 5; 2 3 7; 3 6 8; 2 4 6; 3 6 8; 4 7 10] and I want to calculate X-mean(X), which gives me: octave:2> X-mean(…

ubuntu matrix operators octave
Is x += a quicker than x = x + a?

I was reading Stroustrup's "The C++ Programming Language", where he says that out of two ways to add something to …

c++ performance operators
Ruby best practice : if not empty each do else in one operator

1.I can't find an elegant way to write this code: if array.empty? # process empty array else array.each do |…

ruby operators haml
What does a fullstop or period or dot (.) mean in Haskell?

I really wish that Google was better at searching for syntax: decades :: (RealFrac a) => a -> a -&…

haskell syntax operators function-composition
C conditional operator ('?') with empty second parameter

Typically the '?' operator is used in the following form: A ? B : C However in cases where B = A …

c operators conditional ternary-operator