[Issue 2557] inconsistent behavior when taking reference to member without instance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 11 15:42:10 PST 2009


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





------- Comment #3 from 2korden at gmail.com  2009-01-11 17:42 -------
(In reply to comment #2)
> The code is wrong regardless of whether dofun is static or not.  A.fun needs an
> object of type A.  But it doesn't have one.
> 

I'm not so sure. Object of type A is provided by these two lines of code:
A a = new A;
dg2.ptr = cast(void*)a;


-- 



More information about the Digitalmars-d-bugs mailing list