DMD 0.177 release

Alexander Panek a.panek at brainsware.org
Sat Dec 9 08:33:17 PST 2006


char *newCharz( uint size ) {
	return (new char [size]).ptr;
}

char *p = newCharz(32);

:P

I like the explicity.

Chris Miller wrote:
> 
> char* p = new char[32];
> 
> Error: cannot implicitly convert expression (new char[](32)) of type 
> char[] to char*
> 
> Should this be a special case? Currently it needs  (new char[32]).ptr



More information about the Digitalmars-d-announce mailing list