On Monday, 20 April 2015 at 20:04:04 UTC, Sönke Ludwig wrote:
Am 20.04.2015 um 15:22 schrieb Etienne:
I've been using a lot of CTFE in my libraries and this has had the side effect of increasing my link time beyond 13 seconds. There's a pretty big chunk of those symbols being exported that are used only for
evaluating mixins.

Would there be a way to specify something in the lines of `extern
(none):` or `intern:`?

Any reason why "private" couldn't be used for this? If a private function is only used for CTFE, there is no need to generate code at all.

Need much more powerful flow analysis than DMD frontend is currently capable of. Specifically, it needs to ensure that this function is also not taken address of and not aliased via any of public templates (transitively), as well as not aliased to something available as public.

Reply via email to