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



--- Comment #1 from monarchdo...@gmail.com 2012-11-03 03:02:18 PDT ---
(In reply to comment #0)
> Creating a static array of structs that have a context pointer is not
> supported:

Simpler example:

import std.stdio;

//----
void main()
{
    int a;

    struct S
    {
        void doit()
        {
            writeln("pre ++a");
            ++a;
            writeln("post ++a");
        }
    }

    {
        S s;
        s.doit;
    }

    {
        S[2] ss;
        ss[0].doit;
    }
}
//----
pre ++a
post ++a
pre ++a
object.Error: Access Violation
//----

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

Reply via email to