Just another question about memory management in d from a newbie
Thomas
earthwormjimmy at gmx.at
Mon Jun 17 20:48:59 UTC 2019
On Monday, 17 June 2019 at 20:26:28 UTC, H. S. Teoh wrote:
> On Mon, Jun 17, 2019 at 07:53:52PM +0000, Thomas via
> Digitalmars-d-learn wrote: [...]
>> [...]
>
> If x were a heap-allocated object, then your concerns would be
> true: it would be allocated once every iteration (and also add
> to the garbage that the GC will have to collect later).
>
> [...]
Thank you for your exact explanation on how the compiler works
inside. That will clear some question that have bothered me.
Thomas
More information about the Digitalmars-d-learn
mailing list