Jon Smirl wrote:

> But some of these escape the sexy linker script. The ones in nsNetUtil.h are
> declared in-line and avoid the linker.


Then they're not exported, are they?  You can't export inline-only 
functions, though the compiler will sometimes create an exported symbol 
in addition to doing inline substitution.

> What is the current coding style rule for functions like these, should they
> even exist? Since they avoid CreateInstance they make it impossible to swap
> out their associated component.

Ask in .netlib, I guess.  And ask the people who are calling them.

do_CreateInstance isn't always what you want.  If you're not set up to 
allow arbitrary implementations of the component (taking into account 
threadsafety and other issues that come with that), you should probably 
just use |new| and save the cycles.

Mike


Reply via email to