Gregor to Programmer [email protected] • 4 months agoC memegregtech.euimagemessage-square18fedilinkarrow-up1222arrow-down118file-textcross-posted to: [email protected]
arrow-up1204arrow-down1imageC memegregtech.euGregor to Programmer [email protected] • 4 months agomessage-square18fedilinkfile-textcross-posted to: [email protected]
minus-square@[email protected]linkfedilink19•4 months agoPeople who are enthusiastic about using pointers in C++ are doing it wrong. Never use a pointer when you can get away with a reference.
minus-square@[email protected]linkfedilink23•4 months agoFor C++, yes. But “reference” is just a way of using the pointer when it comes to C
minus-square@SpaceNoodlelink8•4 months agoSure, but that’s technically allocation-agnostic either way.
This is why I only allocate on the stack
People who are enthusiastic about using pointers in C++ are doing it wrong. Never use a pointer when you can get away with a reference.
For C++, yes. But “reference” is just a way of using the pointer when it comes to C
Sure, but that’s technically allocation-agnostic either way.
Based nasa compliant engineer
This guy gets it
Static allocation for the SIL ratings
Stack overflow intensifies
I only use the registers.