[Issue 24160] New: extern(objective-c) ivars don't respect initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 26 00:12:30 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24160
Issue ID: 24160
Summary: extern(objective-c) ivars don't respect initializer
Product: D
Version: D2
Hardware: All
OS: Mac OS X
Status: NEW
Severity: minor
Priority: P4
Component: dmd
Assignee: nobody at puremagic.com
Reporter: destructionator at gmail.com
I made an extern objc class with a member var and after alloc/init it was not
what it was set to.
class thing {
auto item = 4;
}
item not 4. I suspect it is because the extern objc alloc/init things don't
know about D's initializer. Easy to make your own init that does it though.
--
More information about the Digitalmars-d-bugs
mailing list