[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Structure definitions can't be shared between modules?
[Thread Prev] | [Thread Next]
- Subject: Re: Structure definitions can't be shared between modules?
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Fri, 29 Mar 2024 07:06:44 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 29/03/2024 à 04:01, T Lee Davidson a écrit :
Let's say I have a Main.module and a Minor.module. I have a structure definition in Minor.If I try to declare a variable in Main using Minor.StructName as it's type, I get a "Unexpected '.'" error. So, structures must be declared Public but yet they're not public. ??Is it possible to share structure definitions, or do I need to define the structure in both modules?
Structures are there mainly for dealing with shared libraries. This is why they are second-class citizen.
Use a class instead. Regards, -- Benoît Minisini.
Re: Structure definitions can't be shared between modules? | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Structure definitions can't be shared between modules? | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |