Lähettäjä: David Corbin <dcorbin@machturtle.com>
Aihe: Re: What is this syntax?> "David Corbin" <dcorbin@machturtle.com> schrieb im Newsbeitrag
> news:200502131241.13403.dcorbin@machturtle.com...
>
> > def foo(*)
> > end
> >
> > What does the "*" mean?
>
> Any number of argumentsAnd the foo method just can't refer to them?
Right. Technically, I think, it creates an Array of the arguments but
doesn't assign the array to a variable:
def foo(*a)
end
The difference is that here the Array is bound to a for you to access.
E
···
On Sunday 13 February 2005 12:54 pm, Robert Klemme wrote: