Name Mangling & its representation of D types

NonNull non-null at use.startmail.com
Tue Aug 3 20:29:10 UTC 2021


On Tuesday, 3 August 2021 at 17:01:38 UTC, Mike Parker wrote:
> On Tuesday, 3 August 2021 at 16:43:52 UTC, NonNull wrote:
>> how does it work for recursive types like a struct containing 
>> a pointer to a struct of the same type
>
> A struct `S` with a member of type `S*` is still just a struct 
> `S`. The pointer doesn't change anything about the type.

Aha, so it just uses the name S, not an algebraic representation 
of the structure of S.



More information about the Digitalmars-d-learn mailing list