[Issue 1778] Can not create pointer to class reference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 17 16:13:50 PST 2008


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





------- Comment #6 from bugzilla at digitalmars.com  2008-01-17 18:13 -------
You can also write:

class C { }
void test()
{
 C c = new C;
 C* pc = (new C[1]).ptr;
 *pc = c;
}


-- 



More information about the Digitalmars-d-bugs mailing list