lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 18 Dec 2001, Milano wrote:

> function sin(x)
>   return %sin(x*180/PI)
> end
>
> Will it work in the new version?

No. You have to follow the "recipe":

  local _sin = sin
  function sin(x)
    return %_sin(x*180/PI)
  end

This will work fine both in 4.0 and in the next version (give or take the '%').

-- Roberto