From: Austin Ziegler Date: 2006-05-16T05:52:39+09:00 Subject: Re: Struct.new vs class On 5/15/06, Giles Bowkett wrote: > On 5/15/06, Austin Ziegler wrote: > > On 5/15/06, Giles Bowkett wrote: > > > is "*a" basically a keyword args flag that tells initialize() to take > > > any and all args and just pass them up the chain to super()? > > Except that it isn't keyword args. I like David Black's name for it: > > the (un)array operator. > I might have been thinking of a Python term... You might have been. I believe that Python supports both *args and **args, but I could be wrong. (**args is the keyword args flag.) > so when you feed it to initialize() like that, it translates the list > it's been given into an array and then initialize() picks that up and > says "oh, ok, this is the sequence of args I'm expecting"? > > and you could also do > > def initialize (*arbitrarily_long_name) > end Close enough. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca