Branch: Tag:

2016-05-17

2016-05-17 14:14:25 by Per Hedbor <ph@opera.com>

Renamed pow lfun from pow to `**.

This is somewhat incompatible, previously pow(X,3) called X->pow,
now it will call X->`**.

3747:          +  + /*! @decl object|int|float `**(object|int|float arg1, object|int|float arg2) +  *! +  *! Exponentiation. Raise arg1 to the power of arg2. +  *! +  */   PMOD_EXPORT void f_exponent(INT32 args)   {    double a, b;
3787:    stack_swap();    convert_stack_top_to_bignum();    stack_swap(); -  /* fallthrough again (le slow path).. */ +  /* fallthrough again (this is the slow path).. */ +     case TWO_TYPES(T_OBJECT,T_INT):    case TWO_TYPES(T_OBJECT,T_OBJECT): -  if( !call_lfun( LFUN_POW, LFUN_POW ) ) +  if( !call_lfun( LFUN_POW, LFUN_RPOW ) )    Pike_error("Illegal argument 1 to `**.\n");    return;    } -  +    }