std library hooks

Walter Bright newshound2 at digitalmars.com
Sat Apr 14 12:47:14 PDT 2012


On 4/14/2012 3:51 AM, Manu wrote:
> On 14 April 2012 00:30, Walter Bright <newshound2 at digitalmars.com
> <mailto:newshound2 at digitalmars.com>> wrote:
>
>     On 4/13/2012 6:07 AM, Manu wrote:
>
>         Awesome, I missed that. Although it sucks it's deprecated, what's the
>         intended
>         alternative?
>
>         Now if I could only have more of those for malloc/free, and
>         fopen/close/read/write/seek etc.
>
>
>     For a static library, you can hijack anything simply by providing your own
>     implementation of it. The linker will prefer your version.
>
>
> The druntime versions are marked weak?

No.

Remember, the linker only looks in the library to find UNRESOLVED symbols. If 
it's resolved, it won't look for it in the library.



More information about the Digitalmars-d mailing list