TickDuration deprecation

Walter Bright newshound2 at digitalmars.com
Wed Nov 22 21:41:04 UTC 2017


On 11/22/2017 2:45 AM, Walter Bright wrote:
> On 11/22/2017 1:41 AM, Timon Gehr wrote:
>> Why would the conversion function be linked in if I never use it?
> 
> Good question. It depends on how the code is written, and how the compiler 
> represents it in the object file, and how the linker deals with unreferenced 
> parts of object files.


For another example, unreferenced virtual functions never get elided because a 
reference to them does exist - they're in the virtual function pointer table. 
And then, of course, everything that virtual function references is never elided.

Another reason to be careful of "kitchen sink" abstractions.


More information about the Digitalmars-d mailing list