[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: continuation

Ross Bamford

2/5/2006 1:17:00 AM

On Sun, 05 Feb 2006 02:49:58 -0000, Schüle Daniel
<uval@rz.uni-karlsruhe.de> wrote:

> irb(main):005:0* cnt=0
> => 0
> irb(main):006:0> cc=nil
> => nil
> irb(main):007:0> callcc {|cc|}
> => nil
> irb(main):008:0> cnt+=1
> => 1
> irb(main):009:0> cc.call if cnt < 10
> => nil
> irb(main):010:0> cnt
> => 1
> irb(main):011:0>
> irb(main):012:0* RUBY_VERSION
> => "1.8.4"
> irb(main):013:0>
>
> this example is from
> http://www.rubygarden.org/ruby?Con...
> and cnt should become 10
>

I've found that certain things like continuations don't work well under
IRB. I think it's because of the way it's workspaces work.

That code works fine as a script.

--
Ross Bamford - rosco@roscopeco.remove.co.uk
3 Answers

Eddie Haskell

1/7/2011 5:47:00 PM

0


"Phlip" <phlip2005@gmail.com> wrote in message
news:c1aeda5f-f5d8-457e-bea4-8f46a1c4e3f1@j32g2000prh.googlegroups.com...
On Jan 6, 10:17 am, "Eddie Haskell" <th...@bnhhyut.com> wrote:
> "Transition Zone" <mogu...@hotmail.com> wrote in message
>
> news:f88ccb99-cead-4972-a58e-a67dbe51fb1c@fx12g2000vbb.googlegroups.com...
>
> > 60 MINUTES poll: Americans say tax the rich, cut defense spending
>
> I love it when democrats take a poll to see how affective their lies,
> smears, character assassination and propaganda have been with the public.
>
> Democrat do love to demonize and discriminate against minorities..
>
> -Eddie Haskell

Yup. The rich are the only repressed minority that Eddie sees fit to
defend.


Eddie Haskell

1/7/2011 5:49:00 PM

0


"Phlip" <phlip2005@gmail.com> wrote in message
news:c1aeda5f-f5d8-457e-bea4-8f46a1c4e3f1@j32g2000prh.googlegroups.com...
On Jan 6, 10:17 am, "Eddie Haskell" <th...@bnhhyut.com> wrote:
> "Transition Zone" <mogu...@hotmail.com> wrote in message
>
> news:f88ccb99-cead-4972-a58e-a67dbe51fb1c@fx12g2000vbb.googlegroups.com...
>
> > 60 MINUTES poll: Americans say tax the rich, cut defense spending
>
> I love it when democrats take a poll to see how affective their lies,
> smears, character assassination and propaganda have been with the public.
>
> Democrat do love to demonize and discriminate against minorities..
>
> -Eddie Haskell

> Yup. The rich are the only repressed minority that Eddie sees fit to
> defend.

Against class warfare Marxist socialists out to destroy America?

You're damned right.

-Eddie Haskell


Repubs Lost Both Wars

1/8/2011 4:46:00 PM

0

On Jan 7, 12:48 pm, "Eddie Haskell" <th...@bnhhyut.com> wrote:
> "Phlip" <phlip2...@gmail.com> wrote in message
>
> news:c1aeda5f-f5d8-457e-bea4-8f46a1c4e3f1@j32g2000prh.googlegroups.com...
> On Jan 6, 10:17 am, "Eddie Haskell" <th...@bnhhyut.com> wrote:
>
> > "Transition Zone" <mogu...@hotmail.com> wrote in message
>
> >news:f88ccb99-cead-4972-a58e-a67dbe51fb1c@fx12g2000vbb.googlegroups.com....
>
> > > 60 MINUTES poll: Americans say tax the rich, cut defense spending
>
> > I love it when democrats take a poll to see how affective their lies,
> > smears, character assassination and propaganda have been with the public.
>
> > Democrat do love to demonize and discriminate against minorities..
>
> > -Eddie Haskell
> > Yup. The rich are the only repressed minority that Eddie sees fit to
> > defend.
>
> Against class warfare Marxist socialists out to destroy America?
>
> You're damned right.

Shut up and pay your fair share