We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
ratchetfreak
Casey[/quote] An numeric value is not a pointer if you want to convert a numeric value into a poin…
»
Casey Muratori
But why? Do you also have an issue with saying "long long value = 0;" instead of, say, "long lon…
»
Roman
What you are doing is a "solve all" design, which is unimplementable. I have never published a gam…
»
Roman
Why not take into account the min/max range for each axis we sort by? Use the collision volumes bo…
»
Randy Gaul
++i; // i = 1 ++p1; // p1 = 1 ++p2; // p2 = 2 ++p4; // p4 = 4 [/code] This difference in operat…
»
Ginger Bill
Here is what I do for very dynamic strings in C. (Uses custom allocator system)
»
Mattie
Semi-related:
»
ratchetfreak
Casey[/quote] I don't disagree with that. I just have an issue with the fact that "void* ptr = 0;"…
»
Casey Muratori
Yes, what I am saying is stronger: 0 must be a reserved address meaning "null pointer", always, in…
»
ratchetfreak
for (;;) was causing an unreachable code warning in something like. }[/code][/quote] Well then d…
»
mojobojo
for (;;) was causing an unreachable code warning in something like. }[/code]
»
Mārtiņš Možeiko
If you use Visual Studio, try to upgrade to 2015. It detects these situations and produces warning…
»
CJ Nelson
I found out that it was the way I was creating the file that was the problem after all. A header f…
»
Simon Morgan
if (!XInputLibrary) { HMODULE XInputLibrary = LoadLibrary("xinput1_3.dll"); } [/code] is assigne…
»
Jeroen van Rijn
I really miss an important feature, that honestly it's preventing me to come here often, it's a b…
»
Nuno
Hey guys I really miss an important feature, that honestly it's preventing me to come here often, …
»
ratchetfreak
if (!XInputLibrary) { HMODULE XInputLibrary = LoadLibrary("xinput1_3.dll"); } [/code] and this d…
»
Andre
As far as I'm aware, no major compiler currently issues a warning when using "for (;;)" to indica…
»
Simon Morgan
I found the cause (I think) but don't know what was causing it. This code didn't work: if (!XInpu…
»
Simon Morgan
I used to have controller support working. It has stopped working. I have no idea why it has stopp…
»
ratchetfreak
Whether or not the null pointer is represented by 0 is orthogonal to letting 0 implicitly convert …
»
mojobojo
Today I wanted to have an infinite loop without generating a warning with /W4 and without suppress…
»
Roderic Bos
What I was wondering why Casey is so hung up about the "rug" example spanning multiple tiles. He j…
»
Casey Muratori
At the risk of stating the obvious, I strongly disagree with the notion that a pointer's zero valu…
»
xcodedave
What Minecraft has looks like faked ambient-occlusion baking, but what I mean is faked global illu…
»
Bryan Taylor
Pointers in C do not act like integers. Integer math does not apply directly to pointer computat…
»
Oswald Hurlem
That's going to create T-junction problems... not worth it IMO.
»
Oswald Hurlem
Yeah I'm definitely planning to have "baked" lighting which recomputes (for some subset of blocks)…
»
Randy Gaul
Why C++ doesn't define NULL as nullptr is because idiot programmers used NULL as the 0 constant, …
»
Mārtiņš Možeiko
This issue is not Microsoft compilers fault. This is C standards fault. If C compiler doesn't see …
»