Re: Variable Scope
| From: | LingWitt at insightbb dot com | Date: | Sun, 31 Aug 2003 01:10:18 +0000 |
| Subject: | Re: Variable Scope | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4296@lists.php.net to get a copy of this message | ||
NOTE: I am reentering the fray on provocation.
On Saturday, Aug 30, 2003, at 19:59 America/New_York, Ard Biesheuvel wrote:
Perhaps this is an example from C++, but it illustrates my point. This may be a better example, if we are to step back a decade or two: int i; for (i = 0; i < 5; i++) { int i;for (int i = 0; i < 5; i++) {int num = array[i]; printf("%d", num); for (int i = 0; i < 5; i++) printf("%d", i * num);}
for (i = 5; i < 10; i++);} printf("%d", i);
I'll try to explain it in your own language. no declarations inside for() in C ===> your example ===> *crap* loose typing ===> no declarations ===> 'masking out' _IMPOSSIBLE_How germane of you to adopt my own language, but as flattering as that is, I must say that your grammar is off a we bit. I would have chosen: no declarations inside for() in C =>i your example =========> *crap* loose typing =>i no declarations =========> 'masking out' _IMPOSSIBLE_
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php