Bug 24160 – extern(objective-c) ivars don't respect initializer

Status
NEW
Severity
minor
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
Mac OS X
Creation time
2023-09-26T00:12:30Z
Last change time
2024-12-13T19:30:55Z
Assigned to
No Owner
Creator
Adam D. Ruppe
Moved to GitHub: dmd#18187 →

Comments

Comment #0 by destructionator — 2023-09-26T00:12:30Z
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.
Comment #1 by robert.schadek — 2024-12-13T19:30:55Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18187 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB