From: Mathieu Bouchard Date: 2002-01-21T03:26:37+09:00 Subject: Re: $_ as default parameter for a function On Mon, 21 Jan 2002, D De Villiers wrote: > O'Mmm' What about: > def aFunc(param = $_) > puts param > end > $_ = "blah blah" > aFunc($_) > Works !! :-) er. i think i woke up in a parallel universe this morning. how come we didn't get to this solution before? we had spent some, er, nontrivial time trying to get something working. i think there's a catch. Anyway this looks like good news. ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju