TypeInfo in the library
Johannes Pfau
nospam at example.com
Mon Feb 17 11:42:04 PST 2014
Am Tue, 18 Feb 2014 01:01:18 +0900
schrieb Kenji Hara <k.hara.pg at gmail.com>:
> In some case it would be possible without WPO/LTO:
>
> - Immediately called lambdas
>
> enum x = (){ return some_sort_ctfe_calculartions; }; // lambda
> codegen is unnecessary.
>
> - modue private functions
>
> module a;
> private string foo() { ... }
> enum x = foo();
> // Compiler can elide codegen for 'foo', if other declarations
> // in module a don't use it for runtime code.
>
> Kenji Hara
>
- Template instances of any module if the instance is only used in CTFE
More information about the Digitalmars-d
mailing list