Search

July 11, 2022
Issues »
...the code compiles ok and resulting program segfaults on run

```
import std.stdio;

interface ClassInterface...
July 01, 2022
Learn »
On Friday, 1 July 2022 at 13:44:20 UTC, Chris Katko wrote:

No, it...
July 01, 2022
Learn »
Yep, that's it.

moving all code in world.this() to world.initialize() and immediately...
July 01, 2022
Learn »

````D
bool initialize() //called from main
	{
	g.world = new world_t;
	}

class atlasHandler{}
class animation...
July 01, 2022
Learn »
On Friday, 1 July 2022 at 13:20:15 UTC, Mike Parker wrote:

Here's...
July 01, 2022
Learn »
world is null because the constructor didn't complete. The segfault happens inside its constructor...
July 01, 2022
Learn »
Looks like an ordinary null pointer. How did you create the variable?
July 01, 2022
Learn »
Forgot the last line. That's important because world MUST exist by time elf is...
July 01, 2022
Learn »
To add, I cannot even access g.world from inside elf's constructor.

... which is...
July 01, 2022
Learn »
dmd (but I think LDC also is affected)

this bug has bit me multiple times...
6 7 8 9 10 11 12 13 14 15 16 17
Next ›   Last »