[Issue 8074] template-mixin example contradicts text

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 7 09:54:01 PST 2013


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



--- Comment #5 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-07 09:54:00 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > We should fix this, it's clearly a crass error. We can't afford to arbitrarily
> > pick the last lexical declaration in case of an ambiguity.
> 
> But there is no ambiguity, the two functions are:
> 
> void func(int x) { writeln("Foo.func(), x = ", x); }
> void func() { writeln("Bar.func(), x = ", x); }
> 
> Neither of these can hijack one another.

Edit: Well except the case of taking the address of such a function which could
prove problematic.

-- 
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