[Issue 4581] extern function pointers inside functions

2023-10-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4581

Basile-z  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||b2.t...@gmx.com
 Resolution|--- |FIXED

--- Comment #6 from Basile-z  ---
fixed by https://github.com/dlang/dmd/pull/15582. The problem was actually not
the extern attribute but the mangle.

--


[Issue 4581] extern function pointers inside functions

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

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P3

--


[Issue 4581] extern function pointers inside functions

2013-01-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4581


Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #5 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-01-22 
10:36:04 PST ---
Walter can we get your opinion on this?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4581] extern function pointers inside functions

2010-10-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4581



--- Comment #4 from Simen Kjaeraas simen.kja...@gmail.com 2010-10-26 15:22:51 
PDT ---
(In reply to comment #3)
 You can't express intention with extern attribute, because it's ambiguous:
 whether it specifies an external function or internal function with specific
 calling convention. Currently there's no way to differentiate between these 
 two
 cases.

But is there really a difference? Currently, extern( foo ) means 'use foo's
calling conventions and name mangling'. As long as the latter is also part of
the definition, I do not see such a difference.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4581] extern function pointers inside functions

2010-08-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4581


nfx...@gmail.com changed:

   What|Removed |Added

 CC||nfx...@gmail.com


--- Comment #1 from nfx...@gmail.com 2010-08-04 09:05:38 PDT ---
It's a feature, not a bug. If the declaration is contained in something nested
(like a struct, I guess it also applies to functions), name extern doesn't
disable mangling.

You can ask Walter for the why.

However I didn't find this in the spec and I could be wrong, so I'll leave it
to others to find this and mark the bug as invalid.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4581] extern function pointers inside functions

2010-08-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4581



--- Comment #2 from Simen Kjaeraas simen.kja...@gmail.com 2010-08-04 09:20:14 
PDT ---
I cannot foresee any instance in which it is wanted that the compiler disregard
the extern declaration, and even if this is the case, there should at least be
a warning as it blithely ignores the programmer's intention.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 4581] extern function pointers inside functions

2010-08-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4581



--- Comment #3 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-08-04 
10:07:30 PDT ---
You can't express intention with extern attribute, because it's ambiguous:
whether it specifies an external function or internal function with specific
calling convention. Currently there's no way to differentiate between these two
cases.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---