How do you take the address of a struct in D?
Enjoys Math via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Feb 5 16:07:57 PST 2016
On Friday, 5 February 2016 at 23:53:15 UTC, Enjoys Math wrote:
> SDL_RenderCopy(...) takes two pointers to SDL_Rect's,
>
> I have a property method in another class returning the
> SDL_Rect equivalent of a Box (my structure). Taking ampersand
> on the left of a call to the property does not give the address
> (&).
Got it. I was taking the address of a return-by-copy property.
More information about the Digitalmars-d-learn
mailing list