April 09, 2017 Does the CTFE engine reuse variables? | ||||
---|---|---|---|---|
| ||||
Suppose one has a function that will be used in CTFE and it uses a lot of local variables. Does each call of the function end up allocating space for these without ever releasing them or are they reused? or used on the stack like normal? |
April 09, 2017 Re: Does the CTFE engine reuse variables? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jethro | On Sunday, 9 April 2017 at 05:42:02 UTC, Jethro wrote:
> Suppose one has a function that will be used in CTFE and it uses a lot of local variables. Does each call of the function end up allocating space for these without ever releasing them or are they reused? or used on the stack like normal?
Nothing get's reeused.
|
Copyright © 1999-2021 by the D Language Foundation