|
|
Log in / Subscribe / Register

A tale of two data-corruption bugs

A tale of two data-corruption bugs

Posted Jun 7, 2015 14:17 UTC (Sun) by parcs (guest, #71985)
In reply to: A tale of two data-corruption bugs by alankila
Parent article: A tale of two data-corruption bugs

Thankfully C++ makes this strange behavior a feature of normal functions.


to post comments

A tale of two data-corruption bugs

Posted Jun 8, 2015 13:22 UTC (Mon) by zlynx (guest, #2285) [Link]

Which means that as a C++ programmer you realize that you always need to check the function declaration. Always.

It isn't a bad idea to do it for C either. Sure you can see that you are using the & to create a pointer and pass it to a function. What do you do for the second level function that passes that pointer to a third level? No visual indicator there at all.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds