Justin Johansson wrote:
Jeremie Pelletier Wrote:
Besides, if you initialize character arrays to "", what do you initialize other arrays to, and other reference types to? It just wouldn't be consistent.

Consistency.  Since when is that an argument?

Just to be a PITA, pick the inconsistent row in the table below (from 
spec_D1.00.pdf).
The row ordering of the the table has been shuffled just to make it a bit more 
difficult to spot :-)

short.init    0
int.init        0
bool.init     false
byte.init     0
double.init  double.nan
long.init     0L


Obviously the nan floating points, which has annoyed me quite many times, every other type in D inits to zeroed memory, with the exception of void initializers.

Reply via email to