Top "Primitive" questions

A primitive type is a data type provided by a programming language as a basic building block.

Why == operator and equals() behave differently for values of AnyVal in Scala

In the scaladoc of scala.Any, the operator == (or, method ==) is explained: The expression x == that is equivalent to if (…

scala equals equality primitive
How to get polygon antialiasing to work?

I'm using these function calls: glEnable(GL_BLEND) glEnable(GL_POLYGON_SMOOTH) glBlendFunc(GL_SRC_ALPHA_SATURATE, GL_ONE) It …

opengl polygon alphablending antialiasing primitive
Java chained inequality if (5<i<10)

Is there any operator or trick for such operation? Or is it necessary to use if(5<i && …

java types primitive logical-operators
One-byte bool. Why?

In C++, why does a bool require one byte to store true or false where just one bit is enough …

java c++ performance boolean primitive