Ted Ashton wrote:
> John Porter:
> >
> > What would be the output of the following program:
> >
> > $\ = "\n";
> > $i = 0;
> > for ( .. -1 ) {
> > $i++;
> > last if $i > 2;
> > print
> > }
> >
> > If the answer is (as I suspect), "This never prints anything; it goes
> > into an infinite loop just trying to generate the first number", then
> > the proposal is absurd and should be scrapped.
>
> By my understanding (which is definitely not very thorough), the output would
> be a run-time error.
What error message? "Program never halts!" ???
--
John Porter
- Re: RFC 24 (v1) Semi-finite (lazy) lists Jeremy Howard
- Re: RFC 24 (v1) Semi-finite (lazy) lists Ariel Scolnicov
- Infinite lists (was Re: RFC 24 (v1) Semi-finite (... Jeremy Howard
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Ken Fox
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Jeremy Howard
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... John Porter
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Ken Fox
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Jeremy Howard
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... John Porter
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Ted Ashton
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... John Porter
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Ted Ashton
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... James Mastros
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Jeremy Howard
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Ted Ashton
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Damian Conway
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Ted Ashton
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Damian Conway
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... John Porter
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Jeremy Howard
- Re: Infinite lists (was Re: RFC 24 (v1) Semi-fini... Jeremy Howard
