Better HN
topnewbestaskshowjobs
Log inSign up

koorogi

5 karma · joined Oct 5, 2016 (10y ago) · 2 submissions

Submissions

comment 9y ago · link · parent

It's a legal trick that doesn't actually work. Sega tried the same trick and lost when they took it to court in 1992.

https://en.wikipedia.org/wiki/Sega_v._Accolade

comment 10y ago · link · parent

Casting pointers is well defined. What is undefined behavior is to dereference a pointer whose type does not match the pointed-to object.