Factory design

Ameer Armaly ameer_armaly at hotmail.com
Sun May 28 21:07:11 PDT 2006


"Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message 
news:e5dju8$1dol$1 at digitaldaemon.com...
> "John C" <johnch_atms at hotmail.com> wrote in message 
> news:e5dgdt$1as6$1 at digitaldaemon.com...
>
>> extern(C) works because the name of the function doesn't get mangled.
>
> Ohhhh yeah.  I ran into the same thing on another thread about 15 down 
> from this one..
>
> This is a real problem.  Mangling function names with module names is a 
> good idea on the surface, but it makes it impossible to declare a function 
> in one module and define it in another without some ugly hacks and serious 
> restrictions.
>
> Something needs to be done to solve this, such as not mangling module 
> names into the names of functions which are declared "extern."
I agree.  Perhaps with some sort of marker to designate them as 
module-independent if you will; you would be saying with extern that this 
function is meant to be declared anywhere.
>
> 





More information about the Digitalmars-d-learn mailing list