Re: why is it always an endless loop? [message #186157 is a reply to message #186156] |
Mon, 16 June 2014 21:19 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Mon, 16 Jun 2014 21:45:48 +0100, Tim Streater wrote:
> In article <qw7xoz3y22k8(dot)h8pla1goojcr$(dot)dlg(at)40tude(dot)net>, richard
> <noreply(at)example(dot)com> wrote:
>
>> $a="one"
>> $b="one"
>>
>> while ($a=$b){echo "equal"; $b="two";)
>>
>> This simple code causes an endless loop.
>
> No it doesn't. This will not even execute.
>
> Then you wonder why you get bashed all the time.
Tim is write. The code that you wrote as an example will not execute. The
code that you think that you wrote will, and as has been pointed out
several times, contains an error that you have been told about many times
before.
--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
|
|
|