Objective-C Tagged Pointers in Lion
Bavarious notes that Lion can represent some numbers—and, potentially, dates and managed objects(!)—as immediates, without allocating any memory. This is a really old trick, which I guess they couldn’t do until direct isa access had been phased out, but it’s certainly welcome for those of us who create lots of little objects.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed