How to import for mixin contents only.

Taylor Hillegeist via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 10 09:24:51 PST 2016


On Thursday, 10 March 2016 at 17:22:58 UTC, Taylor Hillegeist 
wrote:
> On Thursday, 10 March 2016 at 17:05:26 UTC, Taylor Hillegeist 
> wrote:
>> On Thursday, 10 March 2016 at 16:51:32 UTC, Andrea Fontana 
>> wrote:
>>> On Thursday, 10 March 2016 at 16:20:42 UTC, Taylor Hillegeist 
>>> wrote:
>>>> [...]
>>>
>>> I wonder if compiler is smart enaugh to undestand that 
>>> dependency is not needed at runtime in this case:
>>>
>>> http://dpaste.dzfl.pl/fd3bc2a839a3
>>
>> well the latest gdc isnt smart enough.
>
> So interestingly this will work if i add -ffunction-sections  
> to my compiler options? no idea why?

However my binary goes from 4kb with static text to 11kb with the 
above change.


More information about the Digitalmars-d-learn mailing list