Re:The case of the critical section that let multiple thread...
by robmccoll on Sunday March 23, 2025 @03:53PM
(#43455393)
Typedeffing away pointers means I don't know when copying or passing something if it's by value or by reference.
Re:The case of the critical section that let multiple thread...
by nikanj on Monday March 24, 2025 @10:45AM
(#43461703)
If it starts with LPsomething or Psomething, it's a pointer. Turns out the much-hated hungarian notation does provide value
Re:The case of the critical section that let multiple thread...
by account42 on Monday March 24, 2025 @12:50PM
(#43463012)
Having your typedef be simply "something" and then using something* instead of Psomething would provide the same value and also be readable to people not familiar with your particular naming convention.
Re:The case of the critical section that let multiple thread...
by jstimpfle on Sunday March 23, 2025 @10:16PM
(#43457384)
Pointer typedefs are typically useless because at the usage side you will have to declare structs on the stack and take their address anyway. So you need to be aware that a typename refers to a pointer type, and furthermore it's harder to see and really know because you have to resolve the typedef in your head instead of seeing it right there in syntax.
https://computernewb.com/~lily/files/Documents/NTDesignWorkb...
Nobody likes Hungarian though.