[Issue 17748] extern(C) do nothing on struct methods

2017-10-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748 --- Comment #9 from anonymous4 --- What is the reason for breakage? For convenience attributes applied in bulk silently skip members they are not applicable to: This works: --- struct A { final: int a; } --- But if applied on per member basis they

[Issue 17748] extern(C) do nothing on struct methods

2017-10-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 17748] extern(C) do nothing on struct methods

2017-10-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu --- Comment #7 from Martin Nowak

[Issue 17748] extern(C) do nothing on struct methods

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748 --- Comment #6 from RazvanN --- Thank you all for the explanations. I'm on this. --

[Issue 17748] extern(C) do nothing on struct methods

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748 --- Comment #5 from Simen Kjaeraas --- But the code is in D - the compiler isn't being asked to check any code that isn't D code. There are basically three options here: 1) Mangle S.foo as '_foo', and have it behave like an extern(C) function takin

[Issue 17748] extern(C) do nothing on struct methods

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748 --- Comment #4 from ki...@gmx.net --- (In reply to RazvanN from comment #3) > In my opinion, this is the correct behavior, since it is not the > compiler's job to check the correctness of a code which is not D code. I strongly disagree. It *is* D cod

[Issue 17748] extern(C) do nothing on struct methods

2017-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #3 from Razv

[Issue 17748] extern(C) do nothing on struct methods

2017-08-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748 ZombineDev changed: What|Removed |Added Keywords||diagnostic CC|

[Issue 17748] extern(C) do nothing on struct methods

2017-08-12 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17748 ki...@gmx.net changed: What|Removed |Added CC||ki...@gmx.net --- Comment #1 from ki...@gmx.n