Re: DIP87: Enhanced Foreign-Language Binding

2016-01-23 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-23 02:31, Anon wrote: Ideally, by whether the `extern()` forms a block or it is attached directly to the symbol. I understand that wouldn't work with existing implementation in the compiler, but hopefully it wouldn't be too difficult to do. But I know nothing of compiler internals so

Re: DIP87: Enhanced Foreign-Language Binding

2016-01-22 Thread Anon via Digitalmars-d
On Friday, 22 January 2016 at 16:37:31 UTC, Jacob Carlborg wrote: On 2016-01-21 05:21, Anon wrote: Seeing the recent extern(C++) threads, and much concern therein, I'd like to propose DIP87: http://wiki.dlang.org/DIP87 Destroy to your heart's content. * How do you plan to differentiate speci

Re: DIP87: Enhanced Foreign-Language Binding

2016-01-22 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-21 05:21, Anon wrote: Seeing the recent extern(C++) threads, and much concern therein, I'd like to propose DIP87: http://wiki.dlang.org/DIP87 Destroy to your heart's content. * How do you plan to differentiate specifying the namespace compared with specifying the mangled name for a

Re: DIP87: Enhanced Foreign-Language Binding

2016-01-20 Thread deadalnix via Digitalmars-d
On Thursday, 21 January 2016 at 04:21:06 UTC, Anon wrote: Seeing the recent extern(C++) threads, and much concern therein, I'd like to propose DIP87: http://wiki.dlang.org/DIP87 Destroy to your heart's content. This propose to change everything while not even providing anything more than wha

Re: DIP87: Enhanced Foreign-Language Binding

2016-01-20 Thread Rikki Cattermole via Digitalmars-d
On 21/01/16 6:46 PM, Anon wrote: snip I thought I did a good enough job of explaining that in the DIP so I wouldn't have to here. I was trying to explain some better semantics because how it is currently with strings can be and is a bit ambiguous.

Re: DIP87: Enhanced Foreign-Language Binding

2016-01-20 Thread Anon via Digitalmars-d
On Thursday, 21 January 2016 at 04:42:00 UTC, Rikki Cattermole wrote: On 21/01/16 5:21 PM, Anon wrote: Seeing the recent extern(C++) threads, and much concern therein, I'd like to propose DIP87: http://wiki.dlang.org/DIP87 Destroy to your heart's content. It was great until I saw: extern(aut

Re: DIP87: Enhanced Foreign-Language Binding

2016-01-20 Thread Rikki Cattermole via Digitalmars-d
On 21/01/16 5:21 PM, Anon wrote: Seeing the recent extern(C++) threads, and much concern therein, I'd like to propose DIP87: http://wiki.dlang.org/DIP87 Destroy to your heart's content. It was great until I saw: extern(auto, "myMoveTo:") After all: extern(C/C++/D/Objective-C[, string]) Is th

DIP87: Enhanced Foreign-Language Binding

2016-01-20 Thread Anon via Digitalmars-d
Seeing the recent extern(C++) threads, and much concern therein, I'd like to propose DIP87: http://wiki.dlang.org/DIP87 Destroy to your heart's content.