[Issue 4321] Passing local parameter to non-global template fails.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 27 10:38:40 PST 2010


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


ibrahim YANIKLAR <yanikibo at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|nobody at puremagic.com        |bugzilla at digitalmars.com


--- Comment #1 from ibrahim YANIKLAR <yanikibo at gmail.com> 2010-11-27 10:37:15 PST ---
The code below works:

class C
{
    void f(int i)()
    {
    }

    void g()
    {
        foreach (i; Range!(1,10))
            h!(i)(this);
    }
}

void h(int i)(C c)
{
    c.f!(i)();
}

Probably that is only a compiler limitation and can be fixed (or removed)
without much effort.

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