Re: sequence
- Posted by alexione at EUnet.yu May 30, 2002
- 443 views
>------------ > function BIpower(object x, object y) > return power(x,y) > end function > without warning > function power(object x, object y) > return BIpower(x,y) > end function > with warning > > constant r = routine_id("power") >-------------- > >Of course, it would be a lot more simple (for us users of the product) to >allow taking the routine_id of a built_in function/procedure. However, I >realise that the internal architecture of Euphoria actually makes this a >non-trivial exercise. > >---------- >Derek. Why not making internal.e which would come with standard EU, containing, "wrappers" to internal functions/procedures with some prefix in name, like: ---- internal.e ---- global function _power(object x, objext y) return power(x, y) end function ... ---- end of internal.e ---- This way, you can still use power to refere internal function, and have only one auxiliary function-call when you use call(routine_id("_power"), {x, y}) Alexa