[Issue 8951] static array of context pointer struct s fails:
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 3 03:02:18 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8951
--- Comment #1 from monarchdodra at 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: -------
More information about the Digitalmars-d-bugs
mailing list