------art_61988_11779337.1182422710020
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 6/21/07, Nobuyoshi Nakada <nobu / ruby-lang.org> wrote:
> Hi,
>
> At Thu, 21 Jun 2007 17:04:15 +0900,
> Robert Dober wrote in [ruby-talk:256352]:
> > It does *not* temper with internal state, just allows an array to be
> > passed to #each or #get. I tested it with this use case:
>
> You forget about #terminate.
>
> --
> Nobu Nakada
>
>
Thanks nobu, does this fix it?

Robert

-- 
You see things; and you say Why?
But I dream things that never were; and I say Why not?
-- George Bernard Shaw

------art_61988_11779337.1182422710020
Content-Type: text/x-patch; name=getoptlong.patch; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: base64
X-Attachment-Id: f_f373x1t3
Content-Disposition: attachment; filename="getoptlong.patch"

LS0tIGdldG9wdGxvbmcucmIJMjAwNy0wNi0yMSAxMjo0Mjo0Ny4wMDAwMDAwMDAgKzAyMDAKKysr
IGdldG9wdGxvbmcubmV3LnJiCTIwMDctMDYtMjEgMTI6NDI6MjkuMDAwMDAwMDAwICswMjAwCkBA
IC0zNjMsMTMgKzM2MywxMyBAQAogICAjCiAgICMgRXhwbGljaXRseSB0ZXJtaW5hdGUgb3B0aW9u
IHByb2Nlc3NpbmcuCiAgICMKLSAgZGVmIHRlcm1pbmF0ZQorICBkZWYgdGVybWluYXRlIGFyZ3M9
QVJHVgogICAgIHJldHVybiBuaWwgaWYgQHN0YXR1cyA9PSBTVEFUVVNfVEVSTUlOQVRFRAogICAg
IHJhaXNlIFJ1bnRpbWVFcnJvciwgImFuIGVycm9yIGhhcyBvY2N1cmVkIiBpZiBAZXJyb3IgIT0g
bmlsCiAKICAgICBAc3RhdHVzID0gU1RBVFVTX1RFUk1JTkFURUQKICAgICBAbm9uX29wdGlvbl9h
cmd1bWVudHMucmV2ZXJzZV9lYWNoIGRvIHxhcmd1bWVudHwKLSAgICAgIEFSR1YudW5zaGlmdChh
cmd1bWVudCkKKyAgIC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