Re: Variable Arguments?
Jeremy Cowgar wrote:
>
> Aku has mentioned in the past about Euphoria and variable arguments. Does
> someone
> know if this is a huge or small change to the core? I am not certain as I have
> not yet studied the internal workings of Euphoria. I have glanced, but not
> studied.
>
> A few examples were brought about, such as the function round(). Since no
> variable
> arguments exist, a 2nd function has to be created called round_prec() (or
> round
> precision).
>
> }}}
<eucode>
> result = round({1.3, 2.1, 5.7})
> result = round_prev({1.3432, 5.3232, 8.294833}, 10)
> </eucode>
{{{
>
> Any thoughts from those that know the internals?
>
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>
Defaulted arguments are implemented in Æ (Advanced Euphoria), which needs
further testing before I ever release it. So, obviously, I'm 150% favorable to
it.
CChris
|
Not Categorized, Please Help
|
|