[fpc-devel] Fwd: While - Otherwise Statement
skalogryz.lists at gmail.com
Mon Oct 12 21:33:16 CEST 2015
On Mon, Oct 12, 2015 at 3:11 PM, <wkitty42 at windstream.net> wrote:
> On 10/12/2015 02:02 PM, Dmitry Boyarintsev wrote:
>> The next step would probably be controlled "break", where a user would be
>> to specify how many nested loops needed to broken from.
> ROTFLMAO! if you need or desire something like that then set a
> breakcounter and break... in the next outer block, check breakcounter to
> see if you need to break again... if so, dec(breakcounter) and break...
> then check it again in the next outer block... and so on and so on until
> breakcounter=0... why should the compiler have to do your logic work for
> you? ;)
How would you know if a nested loop finished properly or broke out? ...Just
imagine yourself a 4 nested for loops and you need to break out from the
4th to the 1st?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel