From: "Hal E. Fulton" Date: 2002-01-11T17:41:18+09:00 Subject: Re: The * operator... ----- Original Message ----- From: "Yukihiro Matsumoto" To: "ruby-talk ML" Sent: Friday, January 11, 2002 2:00 AM Subject: Re: The * operator... > In message "The * operator..." > on 02/01/11, Sean Chittenden writes: > > |What's the * operator called when used in a method's arguments? > | > |foo( ['asdf','zxcv','qwer']) # Will pass one arg > |foo(*['asdf','zxcv','qwer']) # Will pass three args > > Unary * in actual argument list is a syntax, not a method. It expands > array into arguments. Hmm. I wonder if Sean is one of those people (like me) who has a compulsive need for things to have names? :) My opinion is that even though it isn't a method, it is still conceptually an operator (like +=, for example). I would call it the "array expansion operator" if I had to give it a name... Now its usage in a formal parameter list might be different... Hal