Jump to page: 1 210  
Page
Thread overview
DIP61: redone to do extern(C++,N) syntax
Apr 27, 2014
Walter Bright
Apr 27, 2014
deadalnix
Apr 27, 2014
Walter Bright
Apr 28, 2014
Walter Bright
Apr 28, 2014
Walter Bright
Apr 28, 2014
Walter Bright
Apr 28, 2014
Temtaime
Apr 28, 2014
deadalnix
Apr 28, 2014
Walter Bright
Apr 28, 2014
Walter Bright
Apr 29, 2014
Walter Bright
Apr 29, 2014
Walter Bright
Apr 29, 2014
Walter Bright
Apr 29, 2014
Walter Bright
Apr 29, 2014
Walter Bright
Apr 29, 2014
Walter Bright
Apr 28, 2014
Walter Bright
Apr 28, 2014
Walter Bright
Apr 27, 2014
Caligo
Apr 27, 2014
Walter Bright
Apr 28, 2014
Brian Schott
Apr 28, 2014
Walter Bright
Apr 29, 2014
Brian Schott
Apr 30, 2014
Walter Bright
Apr 28, 2014
Sergei Nosov
Apr 28, 2014
Walter Bright
Apr 28, 2014
Byron
Apr 28, 2014
Walter Bright
Apr 28, 2014
Byron
Apr 28, 2014
Byron
Apr 28, 2014
Byron
Apr 28, 2014
Byron
Apr 28, 2014
Dicebot
Apr 28, 2014
Walter Bright
Apr 28, 2014
Simen Kjærås
Apr 28, 2014
Walter Bright
Apr 29, 2014
Simen Kjærås
Apr 29, 2014
Timon Gehr
Apr 29, 2014
Walter Bright
Apr 30, 2014
Regan Heath
Apr 30, 2014
Regan Heath
Apr 29, 2014
Timon Gehr
Apr 29, 2014
Timon Gehr
Apr 29, 2014
Walter Bright
Apr 29, 2014
Timon Gehr
Apr 30, 2014
Timon Gehr
May 01, 2014
Regan Heath
May 01, 2014
Regan Heath
May 02, 2014
deadalnix
May 02, 2014
Walter Bright
May 02, 2014
deadalnix
May 02, 2014
Regan Heath
Apr 28, 2014
Byron
Apr 28, 2014
Byron
May 01, 2014
Walter Bright
May 02, 2014
deadalnix
May 02, 2014
Walter Bright
May 02, 2014
Walter Bright
April 27, 2014
http://wiki.dlang.org/DIP61
April 27, 2014
On Sunday, 27 April 2014 at 19:54:50 UTC, Walter Bright wrote:
> http://wiki.dlang.org/DIP61

Sounds awesome.
April 27, 2014
On Sunday, 27 April 2014 at 19:54:50 UTC, Walter Bright wrote:
> http://wiki.dlang.org/DIP61

Without aliasing and with a unified scope operator you will get name clashes between D and C++. You should address why this is not an issue (e.g. practical and not tedious).
April 27, 2014
On 4/27/2014 1:44 PM, "Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang@gmail.com>" wrote:
> On Sunday, 27 April 2014 at 19:54:50 UTC, Walter Bright wrote:
>> http://wiki.dlang.org/DIP61
>
> Without aliasing and with a unified scope operator you will get name clashes
> between D and C++. You should address why this is not an issue (e.g. practical
> and not tedious).

Example of what you mean, please.
April 27, 2014
On Sun, Apr 27, 2014 at 2:54 PM, Walter Bright via Digitalmars-d < digitalmars-d@puremagic.com> wrote:

> http://wiki.dlang.org/DIP61
>

What happens if you try to interface with two different C++ libraries that use the same exact namespaces?


April 27, 2014
On 4/27/2014 3:07 PM, Caligo via Digitalmars-d wrote:
> On Sun, Apr 27, 2014 at 2:54 PM, Walter Bright via Digitalmars-d
> <digitalmars-d@puremagic.com <mailto:digitalmars-d@puremagic.com>> wrote:
>
>     http://wiki.dlang.org/DIP61
>
>
> What happens if you try to interface with two different C++ libraries that use
> the same exact namespaces?

If any of the names mangle to the same string, you'll get errors from the linker, just as you would if referencing those libraries from C++.
April 28, 2014
On Sunday, 27 April 2014 at 19:54:50 UTC, Walter Bright wrote:
> http://wiki.dlang.org/DIP61

This is the new grammar?

LinkageAttribute:
    'extern' '(' identifier '++'? (',' identifier)? ')'
April 28, 2014
On 4/27/2014 5:58 PM, Brian Schott wrote:
> On Sunday, 27 April 2014 at 19:54:50 UTC, Walter Bright wrote:
>> http://wiki.dlang.org/DIP61
>
> This is the new grammar?
>
> LinkageAttribute:
>      'extern' '(' identifier '++'? (',' identifier)? ')'

You can also have N.M
April 28, 2014
On Sunday, 27 April 2014 at 20:53:31 UTC, Walter Bright wrote:
> Example of what you mean, please.

If the c++ library is "std::" and then later either D or C++ is expanded with a name clash, and the externs are auto generated, e.g. "std.something" appears on both sides, what happens then when you recompile you app?

April 28, 2014
On 4/27/2014 7:53 PM, "Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang@gmail.com>" wrote:
> On Sunday, 27 April 2014 at 20:53:31 UTC, Walter Bright wrote:
>> Example of what you mean, please.
>
> If the c++ library is "std::" and then later either D or C++ is expanded with a
> name clash, and the externs are auto generated, e.g. "std.something" appears on
> both sides, what happens then when you recompile you app?


I don't know what you mean. D has an excellent system for resolving names that appear in multiple scopes.
« First   ‹ Prev
1 2 3 4 5 6 7 8 9 10