how to access struct member using [] operator?

pineapple via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 26 04:59:48 PDT 2016


On Sunday, 25 September 2016 at 16:07:59 UTC, Basile B. wrote:
> WooW I have to say that I'm mesmerized !
>
> How can this works ? "member" is run time variable so the 
> return type shouldn't be inferable.

The int fields are promoted to and returned as floats.


More information about the Digitalmars-d-learn mailing list