I'm an old school coder. As with everything I imagine underlying bytes in the int and a constructor being just a function call overwriting them (if told so). Assuming no optimization, of course. And that int is left unintialized by default.
What threw me off was structs were being initialized but not the ints next to them. I also had some code use {} in part of the function/codebase and not in the other, so vars were sometimes not initialized and added more to my confusion. But that was years ago, before I ever had a blog
View all comments
Show parent comment
1
u/Tringi github.com/tringi May 04 '26
I'm an old school coder. As with everything I imagine underlying bytes in the
intand a constructor being just a function call overwriting them (if told so). Assuming no optimization, of course. And thatintis left unintialized by default.