[fpc-devel] Fwd: While - Otherwise Statement
wkitty42 at windstream.net
wkitty42 at windstream.net
Mon Oct 12 21:47:16 CEST 2015
On 10/12/2015 03:33 PM, Dmitry Boyarintsev wrote:
>
> On Mon, Oct 12, 2015 at 3:11 PM, <wkitty42 at windstream.net
> <mailto: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?
by checking the value that caused the break ;) deity knows i've done it many
times before back in the TP/BP 6&7 days... i did it exactly as described, too...
we had to do it that way as there is/was no other way to do it ;)
--
NOTE: No off-list assistance is given without prior approval.
*Please keep mailing list traffic on the list* unless
private contact is specifically requested and granted.
More information about the fpc-devel
mailing list