Excluding symbols

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 20 06:38:09 PDT 2015


On Mon, 20 Apr 2015 13:34:47 +0000, ketmar wrote:

> On Mon, 20 Apr 2015 09:22:17 -0400, Etienne wrote:
> 
>> 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:`?
> 
> i think you should make ER for this. it will be fine if there will be
> the way to tell compiler to skip code generation for some functions
> which used only in CTFE.

by the way, maybe it will be good to add `extern(CTFE)` too, so hdrgen 
can emit source code for such functions to .di file. i.e.

`extern(none)` -- don't generate code, don't emit to .di
`extern(CTFE)` -- don't generate code, emit to .di
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150420/21bc9be9/attachment.sig>


More information about the Digitalmars-d mailing list