Allocating many object

Chris Nicholson-Sauls ibisbasenji at gmail.com
Mon Mar 27 12:50:23 PST 2006


Frank Benoit wrote:
> 	int[] val;
> 	public Alloc()
> 	{
> 		val = new int[10];
> 	}

Just for the record, you can use the same construct above in D.  In fact, you could 
technically do such silliness as:
# auto val = new int[10];

Madness.  But occasionally useful madness.

-- Chris Nicholson-Sauls



More information about the Digitalmars-d mailing list