On Mon, Oct 12, 2015 at 3:11 PM, <wkitt...@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?

thanks,
Dmitry
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to