Thread overview
[Issue 19694] Cannot put Objective-C classes in structs
Jan 17, 2020
Walter Bright
Dec 17, 2022
Iain Buclaw
Sep 26, 2023
Adam D. Ruppe
January 17, 2020
https://issues.dlang.org/show_bug.cgi?id=19694

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |objc
                 CC|                            |bugzilla@digitalmars.com

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=19694

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--
September 26, 2023
https://issues.dlang.org/show_bug.cgi?id=19694

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

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

--- Comment #1 from Adam D. Ruppe <destructionator@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.

--