Req #77776 [Com]: if inline goto
| From: | xxalfa at gmail dot com | Date: | Fri, 22 Mar 2019 00:55:45 +0000 |
| Subject: | Req #77776 [Com]: if inline goto | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220121@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77776&edit=1
ID: 77776
Comment by: xxalfa at gmail dot com
Reported by: xxalfa at gmail dot com
Summary: if inline goto
Status: Duplicate
Type: Feature/Change Request
Package: *General Issues
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Reply to requinix@php.net
Please explain in more detail why PHP would die? If the counterpart can not be found, the program
will simply continue running at that point. My wish is it, the counterpart is not found, goto
returns false.
Reply to spam2 at rhsoft dot net
My idea of a possible area of application is in the direction of sequencer processing. With goto I
jump to the program part and with popen, for example, opens two sub-process and monitors the runtime
- while the main program is waiting for an event capture. Depending on the status of the
sub-process, the main program will evaluate the status and take further steps. It would have to be
determined what happens in case of: condition of success, termination condition and timeout.
Previous Comments:
------------------------------------------------------------------------
[2019-03-21 23:42:46] spam2 at rhsoft dot net
the better question is which sane code needs goto to begin with, it was nice as i where a young
child coding on a C64 in basic but even not relevant 20 years ago in visual basic
------------------------------------------------------------------------
[2019-03-21 23:39:34] requinix@php.net
If there is no matching label then PHP will die. goto will never return.
------------------------------------------------------------------------
[2019-03-21 23:34:40] xxalfa at gmail dot com
We are not talking about the same thing yet. The difference is well known to me, I ask more the
question, why is "goto" can not be an expression. What would have to be done for
"goto" to say the other side is there (or not), I'll jump (or not). I imagine a
milder "goto" feature, which asks politely, can I jump? The current "goto"
function absolutely wants to have a counterpart.
------------------------------------------------------------------------
[2019-03-21 22:38:12] requinix@php.net
If you want to continue the RFC process on your other request, read the How To you were linked that
tells you exactly what you need to do.
If you need an explanation of the difference between a statement and an expression, try
StackOverflow.
------------------------------------------------------------------------
[2019-03-21 22:35:10] requinix@php.net
Duplicate of request #72589.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=77776
--
Edit this bug report at https://bugs.php.net/bug.php?id=77776&edit=1