osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exiting a while loop


On 23/05/20 4:31 AM, Grant Edwards wrote:
> On 2020-05-22, Peter Otten <__peter__ at web.de> wrote:
> 
>> If you want to terminate the script you can use exit. However exit
>> is a function, and you have to call it
>>
>> exit()
> 
> <pedantic>
> 
> Actually it's an instance of _sitebuiltins.Quitter not a function.
> 
> You still have to call it. ;)
> 
> </pedantic>


Which definition (may) make it 'worse' (when compared with "break"):
doesn't exit() also close the application-window under some OpSys (if 
not all) - which would 'disappear' the output before it could be read?

-- 
Regards =dn