[Issue 7459] working around nested function declaration order

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 6 20:38:15 PST 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #4 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-06 20:38:11 PST ---
Another workaround:

mixin template A()
{
    void foo() { bar(); } // ok
    void bar() { foo(); } // ok
}

void main()
{
    void test() { }
    mixin A!();
}

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