[Issue 15217] overloaded extern(C) function declarations are allowed

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15217

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P3

--


[Issue 15217] overloaded extern(C) function declarations are allowed

2018-12-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15217

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com

--- Comment #4 from Walter Bright  ---
A possible solution to this conundrum is to allow two C overloads of the same
function name if they are defined in the same scope. They'd be disallowed if
they were in different scopes. The latter would most likely be accidental. A
possibility would be to disallow it unless the declarations are both @system.

--


[Issue 15217] overloaded extern(C) function declarations are allowed

2018-11-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15217

Walter Bright  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=14147

--


[Issue 15217] overloaded extern(C) function declarations are allowed

2018-11-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15217

Adam Wilson  changed:

   What|Removed |Added

 CC||flybo...@gmail.com

--- Comment #3 from Adam Wilson  ---
I still don't understand why this is not treated as an error. It's obviously
generating incorrect C ABI's in this case. If it's used to support a specific
(or deprecated) path it needs to be deprecated or warning (ugh) so that we can
remove the parts that rely on it and get to a conforming state.

--


[Issue 15217] overloaded extern(C) function declarations are allowed

2018-02-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15217

Martin Nowak  changed:

   What|Removed |Added

 CC||c...@dawg.eu

--- Comment #2 from Martin Nowak  ---
This was invented as a tool to deprecate callbacks missing those attributes.
There is unfortunately no wildcard to infer function attributes from parameter
(callback) attributes, though this use-case comes up frequently (e.g. in
interface and class methods besides extern(C) methods).

--


[Issue 15217] overloaded extern(C) function declarations are allowed

2018-02-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15217

Mike Franklin  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=18385

--


[Issue 15217] overloaded extern(C) function declarations are allowed

2016-03-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15217

Johan Engelen  changed:

   What|Removed |Added

 CC||jbc.enge...@gmail.com

--- Comment #1 from Johan Engelen  ---
"GetMonitorInfoA" is also overloaded in this way in druntime,
https://github.com/D-Programming-Language/druntime/blob/master/src/core/sys/windows/winuser.d#L4425-L4428

--