Overwrite functions...

Mark Wieder mwieder at ahsoftware.net
Fri Nov 18 20:44:54 EST 2005


Gilberto-

Friday, November 18, 2005, 6:00:06 PM, you wrote:

> Exists any way of overwrite a functions that it is defined by the
> Engine Revolution with my function?

> Example, i want to run a function that i defined like "sec" and
> not run a function that return the seconds.

> function sec tValue
>   put value( 1 / cos( tValue ) ) into tResult
>   return tResult
> end sec

No, unforunately there isn't. I'd love to have this ability, too, but
it would complicate the compiler parser quite a bit, so I don't expect
to see this in my lifetime.

You'd need to define "secant" instead of "sec" in order to get past
the compiler error.

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the Use-livecode mailing list