Hi fma,

If you test exemple you'll gave, it could result in something like
that:

function func2(arguments) {
    alert(arguments);
    alert($A(arguments));
}

function func1() {
    func2(arguments);
}

func1('a1','b2');

The body of func2 will alert the arguments received, which ius of
course the one you create in the call to func1.
in first alert, you'll receive the native arguments. It is in fact not
a real object, but a fake Array. It means, that it's an array with
only some Array's methods (like length).
But thanks to prototype, you could convert it in a REAL array with
standard method, and prototype method. An now it's a pleasure playing
with arguments :))

--
david


On 7 déc, 12:53, fma <[email protected]> wrote:
> Good!
>
> Is it possible to pass again this var to another function? What if I
> do:
>
> function func2(arguments) {
> ...
>
> }
>
> function func1() {
>     func2(arguments);
>
> }
>
> func1(a, b);
>
> Does it work?

--

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.


Reply via email to