Pointers to structures
novice3
sorryno at em.ail
Fri Mar 19 13:15:16 UTC 2021
On Friday, 19 March 2021 at 12:19:47 UTC, Cym13 wrote:
> In D '.' can be used to access the member of a struct
> regardless of whether you are manipulating the struct itself or
> a pointer to that struct. So you can just write
> 'ptrStructVar.MemOfStructVar' and it will work without any
> issue.
i guess, idea was to reduce manual work then adapt C sources to D.
i have similar wishes for "typedef ...".
it is boring to rewrite it then making C binding.
More information about the Digitalmars-d
mailing list