in reply to Re: for loop localisation bug?
in thread for loop localisation bug?
In both, C and Pascal, the value of the loop counter variable after leaving the loop (however) is undefined. This is to allow the compiler to optimize its loop construct, as some compilers only have one internal loop construct and convert the syntactic candy of for, while and their ilk to it - or at least I believe that's why it was defined as undefined/implementation specific.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: for loop localisation bug?
by BrowserUk (Patriarch) on Dec 29, 2003 at 18:06 UTC | |
by BUU (Prior) on Dec 29, 2003 at 20:07 UTC | |
by BrowserUk (Patriarch) on Dec 29, 2003 at 20:29 UTC | |
by MADuran (Beadle) on Dec 29, 2003 at 21:24 UTC | |
by Corion (Patriarch) on Dec 29, 2003 at 23:18 UTC | |
by BrowserUk (Patriarch) on Dec 30, 2003 at 00:15 UTC | |
by Anonymous Monk on Dec 30, 2003 at 15:51 UTC | |
by BrowserUk (Patriarch) on Dec 30, 2003 at 19:36 UTC |
In Section
Seekers of Perl Wisdom