From: Gary Wright Date: 2007-03-02T15:15:25+09:00 Subject: Re: Duck Typing Hash-Like Objects On Mar 2, 2007, at 12:39 AM, Joel VanderWerf wrote: > There seems to be still some ambiguity in this description. In this > case: > > h = {3 => 4} > A.new(1, 2, h) > > how do you know if _h_ is intended as the third object (in the > "zero or more objects" part) or as the optional hash? You don't. There just has to be a clear documentation for the disambiguation rule. The caller could use: A.new(1,2, h, {}) If they wanted to force h to be part of the list of objects instead of the optional trailing hash. Gary Wright