D/Objective-C 64bit
Jacob Carlborg via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Fri Nov 7 06:48:34 PST 2014
On 2014-11-07 15:23, Christian Schneider wrote:
> I get the SIGSEGV when i try to NSLog this string constant. I was not
> looking any further, because if it fails to NSLog, i can't do anything
> with it ;)
Now I know what the problem is. In D, module variables are by default in
TLS (thread local storage). To make it refer to a global C variable, use
__gshared:
extern (C) extern __gshared NSString NSApplicationDidHideNotification;
Sorry, I completely forgot about that.
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list