Thread overview
C++ to add import, module and export
Nov 24, 2015
deadalnix
Nov 25, 2015
deadalnix
Nov 25, 2015
Iain Buclaw
Nov 25, 2015
Kagamin
Nov 25, 2015
deadalnix
Nov 25, 2015
Daniel Murphy
Nov 25, 2015
Stefan Koch
Nov 25, 2015
bitwise
November 24, 2015
According to this:
https://www.youtube.com/watch?v=RwdQA0pGWa4

There are plan to add these keyword in C++'s module system.
November 25, 2015
On Tuesday, 24 November 2015 at 23:14:28 UTC, deadalnix wrote:
> According to this:
> https://www.youtube.com/watch?v=RwdQA0pGWa4
>
> There are plan to add these keyword in C++'s module system.

Also, this module representation may be an opportunity for us to compile D to something a C++ compiler can digest (maybe ?).

November 25, 2015
On Tuesday, 24 November 2015 at 23:14:28 UTC, deadalnix wrote:
> According to this:
> https://www.youtube.com/watch?v=RwdQA0pGWa4
>
> There are plan to add these keyword in C++'s module system.

I think I would prefer if C++ compilers started spitting out D bindings instead ;)

     Bit

November 25, 2015
On 25 November 2015 at 01:53, deadalnix via Digitalmars-d < digitalmars-d@puremagic.com> wrote:

> On Tuesday, 24 November 2015 at 23:14:28 UTC, deadalnix wrote:
>
>> According to this: https://www.youtube.com/watch?v=RwdQA0pGWa4
>>
>> There are plan to add these keyword in C++'s module system.
>>
>
> Also, this module representation may be an opportunity for us to compile D to something a C++ compiler can digest (maybe ?).
>
>
Not sure about Clang, but GCC already knows about modules from Fortran. The only difference I forsee is that the dwarf generator will be adapted to emit both modules and namespaces in the same CU - as opposed to just modules or just namespaces.


November 25, 2015
On Wednesday, 25 November 2015 at 08:27:22 UTC, Iain Buclaw wrote:
> Not sure about Clang, but GCC already knows about modules from Fortran.

It's been quite a while already: http://clang.llvm.org/docs/Modules.html
November 25, 2015
On Wednesday, 25 November 2015 at 08:27:22 UTC, Iain Buclaw wrote:
> On 25 November 2015 at 01:53, deadalnix via Digitalmars-d < digitalmars-d@puremagic.com> wrote:
>
>> On Tuesday, 24 November 2015 at 23:14:28 UTC, deadalnix wrote:
>>
>>> According to this: https://www.youtube.com/watch?v=RwdQA0pGWa4
>>>
>>> There are plan to add these keyword in C++'s module system.
>>>
>>
>> Also, this module representation may be an opportunity for us to compile D to something a C++ compiler can digest (maybe ?).
>>
>>
> Not sure about Clang, but GCC already knows about modules from Fortran. The only difference I forsee is that the dwarf generator will be adapted to emit both modules and namespaces in the same CU - as opposed to just modules or just namespaces.

And templates...
November 25, 2015
On 25/11/2015 11:53 AM, deadalnix wrote:
> On Tuesday, 24 November 2015 at 23:14:28 UTC, deadalnix wrote:
>> According to this:
>> https://www.youtube.com/watch?v=RwdQA0pGWa4
>>
>> There are plan to add these keyword in C++'s module system.
>
> Also, this module representation may be an opportunity for us to compile
> D to something a C++ compiler can digest (maybe ?).
>

For what purpose?
November 25, 2015
On Wednesday, 25 November 2015 at 15:30:30 UTC, Daniel Murphy wrote:
> On 25/11/2015 11:53 AM, deadalnix wrote:
>> On Tuesday, 24 November 2015 at 23:14:28 UTC, deadalnix wrote:
>>> According to this:
>>> https://www.youtube.com/watch?v=RwdQA0pGWa4
>>>
>>> There are plan to add these keyword in C++'s module system.
>>
>> Also, this module representation may be an opportunity for us to compile
>> D to something a C++ compiler can digest (maybe ?).
>>
>
> For what purpose?

Compatibility with template-heavy c++ code.
other then that I can see no reason to do so.

I'd rather see the Opposite happen.