"temporary" templates

Adam D. Ruppe destructionator at gmail.com
Tue Nov 26 18:45:35 UTC 2019


On Tuesday, 26 November 2019 at 18:35:42 UTC, Stefan Koch wrote:
> In _general_ it's not possible to categorize a template  as 
> being temporary or  not.
> For language semantic reasons it is a requirement  for every 
> re-instantiated template to forward  to  exactly the same 
> symbol as was generated during the first instantiation.

What if it kept *just* the symbol, but discarded its innards when 
under memory pressure, then could regenerate them if evaluated 
again?



More information about the Digitalmars-d mailing list