Is old style compile-time foreach redundant?

Steven Schveighoffer schveiguy at yahoo.com
Mon Jan 8 03:39:19 UTC 2018


On 1/6/18 6:25 PM, Ali Çehreli wrote:
> Is 'static foreach' sufficient for all needs or is there any value for 
> regular foreach over compile-time sequences?

If you use continues or breaks, then you need to switch to gotos if 
using static foreach, as it does not support them directly.

-Steve


More information about the Digitalmars-d-learn mailing list