From: Sean O'Dell Date: 2002-06-06T09:41:59+09:00 Subject: Re: Pascal-like 'with' statement? Philip Mak wrote: > Is there something like Pascal's with statement? I'd like to turn this > code: > > Cfg = OpenStruct.new > Cfg.host = 'localhost' > Cfg.user = 'shoujoai' > Cfg.database = 'shoujoai' > > into something like this: > > Cfg = OpenStruct.new > with Cfg do > host = 'localhost' > user = 'shoujoai' > database = 'shoujoai' > end That's something I would LOVE to see added. Sean