On Wed, 23 Feb 2005 02:22:15 +0900, Eliah Hecht <eliahhecht / gmail.com> wrote: > I've run into this before when (for instance) I want initialize() to > do one thing if it gets one arg, and a totally different thing if it > gets two args. AFAIK, the only way to do this is to bundle the args up > in an array, and to look at the size of that, which just feels clumsy. You may do better using a hash and named arguments. The initialization logic at least should be cleaner than " if ary.size > x ". Plus you get greater flexibility in argument passing (for example, accommodating new arguments) without break order or arg-count dependant code. James