Created
May 22, 2014 16:42
-
-
Save toulouse/8a4bfab43a67533d33c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Foo.h | |
// InternCheck | |
// | |
// Created by Andrew Toulouse on 5/23/14. | |
// Copyright (c) 2014 Andrew Toulouse. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface Foo : NSObject | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Foo.m | |
// InternCheck | |
// | |
// Created by Andrew Toulouse on 5/23/14. | |
// Copyright (c) 2014 Andrew Toulouse. All rights reserved. | |
// | |
#import "Foo.h" | |
static NSString const *aConst1 = @"ASDF"; | |
static NSString const *aConst2 = @"ASDF"; | |
NSString *aConst3 = @"ASDF"; | |
@implementation Foo | |
+ (void)load | |
{ | |
NSLog(@"aConst1: %p aConst2: %p aConst3: %p", aConst1, aConst2, aConst3); | |
} | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// InternCheck | |
// | |
// Created by Andrew Toulouse on 5/23/14. | |
// Copyright (c) 2014 Andrew Toulouse. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
static NSString const *aConst4 = @"ASDF"; | |
static NSString const *aConst5 = @"ASDF"; | |
int main(int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
NSLog(@"aConst4: %p aConst5: %p", aConst4, aConst5); | |
} | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: