Drop extern (C++)
robert at octarineparrot.com
Wed May 12 09:50:19 PDT 2010
On 12/05/10 13:50, BLS wrote:
> I think nearly nobody is using extern (C++) 'cause of it's limits. So
> why not drop it ? IMHO this feature is not a " D2 sales argument",
> instead it's vs. productive.
> What do you think ?
It should be possible to implement extern(C++) using ctfe/string mixins,
as all that needs doing is the name mangling. This is something tools
does, allowing you to have the equivalent in D1 .
Add to this C++ name mangling doesn't work a lot of the time on
linux. I think it's definitely possible to replace it with something
in std, possibly based on the code from tools. If it's dropped it does
mean a chunk of ddmd will need rewriting, I don't see this as too much
of an issue though.
More information about the Digitalmars-d