From: Fredrik Date: 2008-04-18T10:15:07+09:00 Subject: Re: Parallel for loop > The new "n" parameter is mandatory since it's the first parameter. It would be > nice if it could be not defined (so = infinite): > > forkmap(4) { code } --> max 4 process > forkmap { code } --> max infinite > I was thinking about that too, but as far as I understand it Ruby only allows optional arguments to be the last arguments - i.e. the "n" parameter would have to appear after the code block. And that would look strange : forkmap{ code }(4).