Hello, I haven't been here for a while. I've seen and tested that extern (Objective-C) is working now to access macOS/Cocoa API's on Arm64 Macs. Very nice, thanks! 🙏 👍
Any progress/news with a LDC iOS runtime (iPhone/iPad)? Anything useable yet? 50%, 80%, 100% working? Full support for classes, garbage collection? 🤔 ```D
//
// ldc2 -L-framework -LFoundation main.d && ./main
//
module app;
import core.attribute : selector;
extern (Objective-C)
extern class NSString {
static NSString alloc() @selector("alloc");
// mutable
// NSString initWithUTF8String(char* str) @selector("initWithUTF8String:");
// immutable
NSString initWithUTF8String(immutable char* str) @selector("initWithUTF8String:");
void release() @selector("release");
}
extern (C) void NSLog(NSString, ...);
void main() {
// mutable version
//char* text = "Hello World!\0".dup.ptr;
//auto str = NSString.alloc().initWithUTF8String(text);
//auto str = NSString.alloc().initWithUTF8String("Hello World!\0".dup.ptr);
// immutable version
auto str = NSString.alloc().initWithUTF8String("Hello World!\0".ptr);
NSLog(str);
str.release();
}