I sure hope I'm not going to stir up any trouble, but why exactly would you
need a GOTO statement? Many languages have no such construct because the
ability to use functions or routines makes GOTO statements obsolete. They
are most likley only in VB because it's a legacy thing, but AFAIK C, C++,
and some of the more less known languages such as Clipper, FORCE do not have
GOTO statements. They haven't been missed either.
>>From: David Robley [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, June 11, 2002 9:32 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [PHP] GOTO command. Doest it exist?
>>In article <001901c21190$c2ffc4e0$0100007f@localhost>,
>>[EMAIL PROTECTED] says...
>>> Many will tell you that the goto command is extinct. It isn't,
>>> evolved into the function command. What you do now is create a
>>> function some_name($variable,$other_variable,...)
>>> some code here;
>>> then, call it using :
>>> It's just like goto, it goes to a specified code block and then
>>> the line below the call, but takes more typing.
>>> Hope this helps.
>>What you have described is more like a gosub.
>>Goto jumps execution to the specified point in the code and
>>there. It does not automatically return to the line after the goto call.
>>Quod subigo farinam
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>Incoming mail is certified Virus Free.
>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>Version: 6.0.370 / Virus Database: 205 - Release Date: 6/5/2002
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.370 / Virus Database: 205 - Release Date: 6/5/2002
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php