News for hackers. Stuff that matters.
Re:The cost of forsaking C by koorogi on Wednesday October 05, 2016 @08:44AM (#12643296)
Casting pointers is well defined. What is undefined behavior is to dereference a pointer whose type does not match the pointed-to object.
Re:The cost of forsaking C by akvadrako on Wednesday October 05, 2016 @09:09AM (#12643465)
That's not correct in general; casting pointers is possibly undefined. However, it does seem a made a mistake trying to use void * as an example.