pike.git / CHANGES

version» Context lines:

pike.git/CHANGES:35:   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 Shorthand for string(val..val) added: string(val).       A syntax for when the range of a string type only    contains a single value.    + o Syntax for specifying the length of array and string types. +  +  Eg string(4bit: 8bit) is 8-bit strings of lengths 0-15. +    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::`**()).