Classes new'd inside for loop are all the same instance?
lobo via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Sep 8 05:35:55 PDT 2016
On Thursday, 8 September 2016 at 12:28:55 UTC, Meta wrote:
> On Thursday, 8 September 2016 at 12:24:48 UTC, lobo wrote:
>> [...]
>
> I don't have time to explain at the moment, but change the `&c`
> to `cast(void*)c` and you will see what you expect. I will post
> an explanation soon.
Thanks for the blazingly quick reply! :)
Please post the explanation when you get time because I'd love to
know what is really happening.
bye,
lobo
More information about the Digitalmars-d-learn
mailing list