www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Does the CTFE engine reuse variables?

reply Jethro <qyzz gr.ff> writes:
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?
Apr 08 2017
parent Stefan Koch <uplink.coder googlemail.com> writes:
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.
Apr 08 2017