FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » terminate a PHP script
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: terminate a PHP script [message #172578 is a reply to message #172546] Tue, 22 February 2011 01:23 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
n00m wrote:
>> Again, why not if-then-else?
>
> what if it's 10 nested for() stmts?
> And you need to break out of ALL for()'s from the innermost for()?
> Do you like 10 if-then-else conditionals, 1 per each for()?

Not me sir!


Thats a classic case for a goto!


Now consider 15 subroutines deep, and inside 10 for loops, and the
hardware says 'er, I lost connection to the other end'

And what you need to do is basically go to jail do not pass go, and
start over with a hardware rest/init sequence, and redo the whole thing
from start. THAT's yer longjmp(). Go to jail Do not pass Go. trash the
stack and start over.

Or consider how to write a multitasking interrupt driven scheduler in a
high level language. Its awful. You need to physically switch the
stack..to point to a stack whose location is stored - gasp - in a
global variable!

Inside an asynchronous interrupt service routine.Yuk.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Extralight browser-webserver communication via cookies (+)
Next Topic: Storing multiple character set types (or a representation of em) in a table column
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 10:29:25 GMT 2024

Total time taken to generate the page: 0.05754 seconds