[fpc-devel] Fwd: While - Otherwise Statement

Dmitry Boyarintsev 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
>> able
>> 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...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20151012/33e314ec/attachment.html>

More information about the fpc-devel mailing list