Standard way to supply hints to branches

Walter Bright newshound2 at digitalmars.com
Thu Aug 29 18:28:04 UTC 2024


On 8/28/2024 2:45 AM, Manu wrote:
> Here's one that I just wrote a short while ago:
> https://gist.github.com/TurkeyMan/0e49da245cc0086f852ac18deed21a9c 


```
if (data.length < 4) // unlikely
     return 0;
```

replace with:

```
if (data.length < 4)
     goto Lreturn0;
```


More information about the Digitalmars-d mailing list