pike.git / CHANGES

version» Context lines:

pike.git/CHANGES:25:   o typeof(X) can now be used as a type.       The main use case is in macros, but it might be useful for other    things as well (as an example in a typedef).       typedef typeof(Val.true)|typeof(Val.false) bool;       typeof, when used like this, behaves very much like the C++    decltype() expression.    + o Shorthand for int(val..val) added: int(val). +  +  A syntax for when the range of an integer type only +  contains a single value. +    o ** operator added. It's exponentiation and works with most    combination of numerical types (int,float,Gmp.mpq,Gmp.mpf,Gmp.mpz)       `** and ``** operator overloading functions added.       This introduces one incompatible change: Previously the "pow"    function called a "_pow" function in the first argument if it was an    object. It has now been changed to also use `** (or, rather, pow()    is now implemented using predef::`**()).