Get the latest tech news
A Random Walk Through Ada (2014)
⇡Introduction So the C programming language has been getting a lot of bad press recently; a really stupid bug in some C code has compromised some of the core security infrastructure on the internet. The fix is easy, but the knock-on effects are going to go on for years and will cost serious amounts of money.
...although bear in mind the pointer access rules; if AdjustCallback had been defined in an outer scope, we wouldn't be able to assign SetToZero() to it above (because of the risk of local object leakage). (But because Ada supports overloading, you can instantiate the generic several times with the same name but different types, so you can simulate polymorphic functions moderately easily.) There's all the usual container-based cool stuff here, including some generic algorithms; I won't go into the details --- interested parties can dig up the documentation.
Or read this on Hacker News