[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [plt-scheme] Return from do
Thanks a lot.
:)
Paulo
> Exceptions or let/ec, depending on what you want.
>
> Most of the time you're better off writing a tr function
> and just encoding the exit conditions directly. That's
> clearer.
>
> -- Matthias
>
>
>
> > -----Original Message-----
> > From: owner-plt-scheme@fast.cs.utah.edu
> > [mailto:owner-plt-scheme@fast.cs.utah.edu]On Behalf Of Paulo J. Matos
> > Sent: Thursday, June 06, 2002 6:51 PM
> > To: plt-scheme@fast.cs.utah.edu
> > Subject: [plt-scheme] Return from do
> >
> >
> > Hi all,
> >
> > How can I get out of do before iteration ends?
> > In CL I use return and return-from, how can I do it in PLT
> > Scheme?
> >
> > Best regards,
> > --
> > Paulo J. Matos : pocm(_at_)rnl.ist.utl.pt
> > Instituto Superior Tecnico - Lisbon
> > Software & Computer Engineering - A.I.
> > - > http://www.rnl.ist.utl.pt/~pocm
> > ---
> > Yes, God had a deadline...
> > So, He wrote it all in Lisp!
> >
>
--
Paulo J. Matos : pocm(_at_)rnl.ist.utl.pt
Instituto Superior Tecnico - Lisbon
Software & Computer Engineering - A.I.
- > http://www.rnl.ist.utl.pt/~pocm
---
Yes, God had a deadline...
So, He wrote it all in Lisp!