Thread overview
[Issue 4699] Functions in peer scopes cannot have the same name
Mar 19, 2014
Infiltrator
Mar 20, 2014
Infiltrator
Mar 29, 2014
Stewart Gordon
March 19, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=4699


Infiltrator <lt.infiltrator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lt.infiltrator@gmail.com


--- Comment #1 from Infiltrator <lt.infiltrator@gmail.com> 2014-03-18 23:29:45 PDT ---
Why is this a bug?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 20, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=4699


Infiltrator <lt.infiltrator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #2 from Infiltrator <lt.infiltrator@gmail.com> 2014-03-19 17:45:25 PDT ---
*** Issue 5882 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 29, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=4699



--- Comment #3 from Stewart Gordon <smjg@iname.com> 2014-03-29 12:21:31 PDT ---
Because the two functions named f0 are in disjoint scopes, the compiler shouldn't care about the fact that they have the same name.

I can see a problem in that at the moment the mangled names of the two functions would clash.  So this is presumably a temporary restriction in the compiler pending a name mangling scheme that avoids this.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 29, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=4699



--- Comment #4 from bearophile_hugs@eml.cc 2014-03-29 12:25:35 PDT ---
(In reply to comment #3)
> So this is presumably a temporary restriction in the compiler pending a name mangling scheme that avoids this.

Walter could answer if this restriction is temporary or not.

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