From: D De Villiers Date: 2002-01-21T02:25:07+09:00 Subject: Re: $_ as default parameter for a function Thomas, > I'd like the fragment below to produce "blah blah", but it doesn't > > def aFunc(param = $_) > puts param > end > > $_ = "blah blah" > aFunc O'Mmm' What about: def aFunc(param = $_) puts param end $_ = "blah blah" aFunc($_) Works !! :-) Regards, Lennie De Villiers ICQ# 57008830 Moderator: news:comp.sources.delphi PocketStudio Professional Pocket-Technologies.Inc - www.pocket-technologies.com Write PalmOS Applications With Your Delphi Skills! PL/I for Palm Project: ---------------------- http://www.crosswinds.net/~lennie2000/comp/PLI_Palm/ Discussion Forum: http://groups.yahoo.com/group/PLI_Palm