[Issue 19694] Cannot put Objective-C classes in structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 26 00:13:39 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=19694

Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator at gmail.com> ---
I saw this too recently, I think it is because it is trying to reference them
for precise gc info.

I hacked around it by wrapping the member in a union {}

struct Foo {
    union { NSObject obj; }
}

but i agree it shouldn't require this.

--


More information about the Digitalmars-d-bugs mailing list