www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - C++ to add import, module and export

reply deadalnix <deadalnix gmail.com> writes:
According to this:
https://www.youtube.com/watch?v=RwdQA0pGWa4

There are plan to add these keyword in C++'s module system.
Nov 24 2015
next sibling parent reply deadalnix <deadalnix gmail.com> writes:
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 ?).
Nov 24 2015
next sibling parent reply Iain Buclaw via Digitalmars-d <digitalmars-d puremagic.com> writes:
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.
Nov 25 2015
next sibling parent Kagamin <spam here.lot> writes:
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
Nov 25 2015
prev sibling parent deadalnix <deadalnix gmail.com> writes:
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...
Nov 25 2015
prev sibling parent reply Daniel Murphy <yebbliesnospam gmail.com> writes:
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?
Nov 25 2015
parent Stefan Koch <uplink.coder googlemail.com> writes:
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.
Nov 25 2015
prev sibling parent bitwise <bitwise.pvt gmail.com> writes:
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
Nov 24 2015