Thread: Z+Angband dev
View Single Post
Old February 22, 2018, 05:42   #54
Join Date: May 2016
Posts: 330
t4nk is on a distinguished road
Originally Posted by droof View Post
I have most problems in C with int-to-pointer-to-int situations. I get segfaults for wrong type conversions in multiple places in code.
Well, that's the case of "doctor, it hurts when I do that"

Then I have to deal with multiple data types for integers and strings, that's a headache. What's wrong with just using 1 int data type and 1 string data type that'll work on most common systems for most common situations and make life in coding a bit easier?
Just use ints. As for strings, don't use wchar_t, these things are indeed a headache (they can be 16 bits or 32 bits). Strings in C are bad, that's just how it is.
t4nk is offline   Reply With Quote