Hacker News new | past | comments | ask | show | jobs | submit login

I had overlooked that he was using a pointer to the struct, and so I was interpreting things to be that C++ was actually doing under the hood allocations. I'm glad I asked though, cause I was really worried about C++ for a second there :)

So it seems like if the author had wanted he could have used C++ like a safer version of C macros, which if I ever need to use C++ will likely be my approach too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: