On Sat 24 Jan 2004 at 14:03:52 +0900, nobu.nokada / softhome.net wrote:

> def my_method(foo = (defaulted = 'bar'))
>   if defaulted
>     puts "warning: default value #{foo} being used for 'foo'"
>   end
> end

Aha, very clever!

When I first looked at this, it made perfect sense, but the longer I
stare at it, the less obvious it seems to me and the more it makes my
brain itch, as Hal would say.

Ian
-- 
Ian Macdonald               | Hash table has woodworm 
System Administrator        | 
ian / caliban.org             | 
http://www.caliban.org      | 
                            |