Standard way to supply hints to branches

Dom DiSc dominikus at scherkl.de
Mon Aug 26 09:08:03 UTC 2024


On Monday, 26 August 2024 at 07:12:47 UTC, Walter Bright wrote:
> I recently learned a syntactical trick on how to do this.
> 
> ```
> do
> {
>    if (x) break;
>    if (y) break;
>    if (z) break;
>    hotPath();
> } while (0);
> ```

Why does this work? The else path is still the cold path, isn't 
it?


More information about the Digitalmars-d mailing list