From: nobu.nokada@... Date: 2002-06-06T19:41:36+09:00 Subject: Re: Pascal-like 'with' statement? Hi, At Thu, 6 Jun 2002 17:42:27 +0900, Avi Bryant wrote: > Or, in more Smalltalky style, > > Cfg = OpenStruct.new.host('localhost'); > .user('shoujoai'); > .database('shoujoai'); > .yourself > > One nice property of this last style is that the whole thing becomes a > single expression, suitable for, say, putting in a return statement > without even using a local variable. It allows only each one methods, i.e., denies method chains in cascades? If not, it needs to explicit the `start point' of the cascade. Once I'd thought out like this: Cfg = OpenStruct.new.{host('localhost') user('shoujoai') database('shoujoai') method.chain yourself} But I concluded cascades must result only confusion if nested. -- Nobu Nakada