News for hackers. Stuff that matters.
Re:Show HN: Smart pointers for the C programming language by minthd on Wednesday January 14, 2015 @11:16AM (#8887158)
This looks great.

From the examples, it seems that it is fully compatible with standard pointers with no need of casting. Is it true ?

If so, it could work well in simplifying development with embedded development libraries, say like the mbed.

Re:Show HN: Smart pointers for the C programming language by Snaipe on Wednesday January 14, 2015 @11:19AM (#8887181)
Yup, these are just pointers, usage is still the same, and no cast/special functions are needed to manipulate them.
Re:Show HN: Smart pointers for the C programming language by TheLoneWolfling on Wednesday January 14, 2015 @11:40AM (#8887312)
Well... you cannot call free on them, unless I'm mistaken. But other than that it's as normal.

(This could be a problem if you want to call library code that frees a supplied pointer)

Re:Show HN: Smart pointers for the C programming language by Snaipe on Wednesday January 14, 2015 @11:54AM (#8887418)
Ah, yes, good point. Great care should be taken for these cases to not happen.