Drop extern (C++)
Walter Bright
newshound1 at digitalmars.com
Wed May 12 10:55:45 PDT 2010
Robert Clipsham wrote:
> On 12/05/10 13:50, BLS wrote:
>> Hi,
>> 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 ?
>> Bjoern
It works well for interfacing to COM.
> 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 [1].
>
> Add to this C++ name mangling doesn't work a lot of the time on
> linux[2]. 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.
>
> [1] http://dsource.org/projects/scrapple/browser/trunk/tools/tools/cpp.d
> [2] http://d.puremagic.com/issues/show_bug.cgi?id=4059
If there's a bug in the mangling, please post to bugzilla.
More information about the Digitalmars-d
mailing list