News for hackers. Stuff that matters.
Re:Dereferencing NULL Pointer, without a Seg Fault by rayiner on Wednesday July 11, 2012 @12:31AM (#4227731)
TL;DR version: the '->' operator is punned in C++ to mean both "load through a pointer" and "call a function with the pointer as the first argument." Unsurprisingly, nothing blows up when you use the second form with a null pointer.

V8 actually uses this to implement a pretty cool trick. V8 objects are tagged--tag bits distinguish valid pointers from integer immediate values. The integer class has no data, it stores its information in the 'this' pointer.

Re:Dereferencing NULL Pointer, without a Seg Fault by mkopinsky on Thursday July 12, 2012 @11:13PM (#4238042)
This V8 business sounds like some form of black magic. Do you have more info on this?