[Issue 3231] Function declared to return a type with its same name doesn't compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 8 16:07:10 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3231





--- Comment #11 from Stewart Gordon <smjg at iname.com>  2009-08-08 16:07:09 PDT ---
(In reply to comment #10)
> (In reply to comment #9)
> > Better beware of hijacking vulnerabilities.
> 
> This is possibly valid, do you have an example that drives your point?

I'm not sure if there are any in this particular instance, but it's something
to be careful of whenever you try to resolve a symbol to a different scope
depending on how it's being used.

It may be the case that the worst that can happen here is that the class-level
function conflicts with an opCall on the module-level class.  While no call of
the form Bar(...) is happening here, I can see it getting confusing if one does
occur....

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


More information about the Digitalmars-d-bugs mailing list