Re: fork dies
"Detering Dirk" <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
> -----Original Message----- > From: Eric Hodel [mailto:[email protected]] > Juha-Jarmo Heinonen ([email protected]) wrote: > > AFAIK {..} is an alias for do..end when used as a block. > > Yes, and I find it 'ugly' :) > > I really like the beauty of "fork and exit" as opposed to "exit if > fork", FWIW :) > > A really good example of the beauty of do ... end vs { ... } is in the > ruby tests, there are constructs like: > > Windows.dont do > ... > end AFAIK there is indeed a difference, as documented in the 'Programmin Ruby' book: >>>>>>>> The only difference between this notation and using braces to define blocks is precedence: do...end binds lower than ``{...}''. <<<<<<<<< Or has this changed with 1.8? Bye Det *********************************************************************** Die Information in dieser email ist vertraulich und ist ausschliesslich fuer den/die benannten Adressaten bestimmt. Ein Zugriff auf diese email durch andere Personen als den/die benannten Adressaten ist nicht gestattet. Sollten Sie nicht der benannte Adressat sein, loeschen Sie bitte diese email. ***********************************************************************