Making template instantiations more lazy

Jonathan M Davis newsgroup.d at jmdavisprog.com
Wed Oct 18 09:32:39 UTC 2017


On Wednesday, October 18, 2017 09:13:47 Per Nordlöw via Digitalmars-d-learn 
wrote:
> Are there any nearby plans to make more template instantiations
> (especially aggregate members) lazy in DMD?
>
> Are there any specific obstacles against doing that or has it
> just not been prioritized?

Templates are never instantiated unless they're actually... well,
instantiated. So, they're already lazy in that sense. The compiler isn't
pre-emptive with them at all. What exactly about them do you want to be lazy
that isn't?

- Jonathan M Davis




More information about the Digitalmars-d-learn mailing list