On Tue, Aug 14, 2012, at 12:09 AM, Vincent Habchi wrote: > Using part of pointer to do something else than record an address is > perilous.
NSNumber does exactly that on 10.7 and higher. Tagged pointers are a well-understood technique. You just have to be careful not to dereference them directly. The runtime is able to understand a tagged pointer. Yet more reasons why directly accessing isa is a bad idea. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com