Any chance to call Tango as Extended Standard Library

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Thu Jan 22 05:36:14 PST 2009


Don wrote:
> Andrei Alexandrescu wrote:
>> Don wrote:
>>> Can we work out the math stuff at least? There's no difference 
>>> between Phobos and Tango there. All we need is an agreement on common 
>>> module naming (eg, create core.math).
>>
>> That would be great. I don't think that's a major issue anyway. If I 
>> were you, to be compatible with today's state of affairs, I'd simply 
>> put in the makefile the code necessary for switching the module prefixes.
> 
> It means that any code which uses a library based on both Tango and a 
> library based on Phobos will end up with two copies of all of the 
> functions, and they'll have different name mangling etc. You end up with 
> two incompatible Bigints, for example, even though they have identical 
> code inside.

Interestingly, this might be less of a problem when using LDC. LLVM has 
an IPO pass to merge identical functions (opt -mergefunc).



More information about the Digitalmars-d mailing list