[Issue 1778] Can not create pointer to class reference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 17 13:04:38 PST 2008


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


bugzilla at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




------- Comment #3 from bugzilla at digitalmars.com  2008-01-17 15:04 -------
C c = new C;
C* pc = new C*;
*pc = &c;

Note that it appears you are asking that:
   new C*;
allocate both a C and a pointer to C as two separate allocations. This is not
done for the same reason that:
   new int*;
does only one allocation - not two.


-- 



More information about the Digitalmars-d-bugs mailing list