extern(C++, ns)

Danni Coy via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 19 22:18:35 PST 2016


I have been turning this over in my head for the last week.

What about something along the lines of
extern (C++,module)
{
}
which keeps code at the module level on the D side and puts code into
a namespace that mirrors the D module name.


On Wed, Jan 20, 2016 at 3:32 PM, Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On 1/19/2016 7:54 PM, Manu via Digitalmars-d wrote:
>>
>> That in itself is not a serious problems though, but the presence of
>> the namespaces do present other serious problems which are completely
>> unnecessary symptoms of the design, especially when you consider it
>> actually fails as it's only purpose in practise.
>> I mentioned problems in my prior post, and repeatedly before that, and
>> nobody has addressed any of them yet.
>
>
> Actual code examples of the serious problems would be appreciated. All the
> namespace code examples you posted were bugs that have since been fixed, or
> were misunderstandings that were explained.


More information about the Digitalmars-d mailing list