Search

August 31
General »
...question.
He said a single break or goto is NOT considered the hot branch by...
August 29
General »

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

replace with:

```
if (data.length < 4)
    goto Lreturn0;
```
August 27
General »
...like `do {}
while(0)`, using labels and goto's which doesn't marry well with...
August 24
General »
...HotPath:
	...
	goto End;

ColdPath:
	...

End:
	...
```


In pseudo code:

```
if (condition == 0)
	goto ColdPath;

HotPath:
{
}
goto...
August 23
General »
...work:

```
if (x) goto Lreturn;
if (y) goto Lreturn;
if (z) goto Lreturn;
hotPath();
Lreturn:
```
August 14
DIP Development »
...to, move constructors.

Same with unreachable, loops & goto reset reachability of variables.

I'm not...
July 28
General »
...field1) {
	if (S2* ptr2 = ptr1.field2) {
		// success
		goto AfterFailure;
	}
}

// failure

AfterFailure:
```

From:

```d
if (int...
July 23
Issues »
...continue` statements. The lowering absolutely supports these. Also, `goto` should be allowed. Cf. Issue 24460.

--
July 23
Issues »
https://issues.dlang.org/show_bug.cgi?id=24460

Bolpat <qs.il.paperinik@gmail.com...
July 23
Issues »
...the loop is entered or left via `goto`. My sense is entering should not check...
1 2 3 4
Next ›   Last »